Compares two objects for identity. Returns true if object1 and object2 are identical. Otherwise, it returns false.
Objects are considered identical if they are computationally equivalent. That is, there is no way for any possible Dylan program to distinguish them.
At an implementation level, this will usually mean that the objects are pointers to the same storage or are the same immediate value. An extension is made for built-in number classes and characters. Because these objects are not mutable (i.e., cannot be changed), two of the same class with the same value will always be the same (and will thus be indistinguishable to programs).
sealed
| object1 | An instance of <object>. |
| object2 | An instance of <object>. |
| boolean | An instance of <boolean>. |