Page last modified on July 06, 2014, at 07:39 AM

An id is the most fundamental type in causerie. In some ways, it is similar to an untyped pointer, in that it "points" to an area of memory and can be cast to a variety of different types. This only works because the notion of "types" in causerie, as in Smalltalk, is really that of a class?. An id "points" to the structure in memory that represents either a class or an instance of a class. Unlike an untyped pointer, an id cannot be made to refer to anything that is not a class or instance thereof; the compiler will not allow it.



recent changes

edit SideBar

All site content copyright © its various contributors.
Licensed under Creative Commons License