Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

Object And Class

The definition of the built-in class OBJECT is:

 ________________________________________________________________
|
|       > (send object :show)
|       Object is #<Object: #23fd8>, Class is #<Object: #23fe2>
|         MESSAGES = ((:SHOW . #<Subr-: #23db2>) 
|                     (:CLASS . #<Subr-: #23dee>) 
|                     (:ISNEW . #<Subr-: #23e2a>))
|         IVARS = NIL
|         CVARS = NIL
|         CVALS = NIL
|         SUPERCLASS = NIL
|         IVARCNT = 0
|         IVARTOTAL = 0
|       #<Object: #23fd8>
|________________________________________________________________

Note that OBJECT is a class - as opposed to an "instance-style" object. OBJECT has no superclass, it is the top or root of the class hierarchy. OBJECT's class is CLASS.

 ________________________________________________________________
|
|       > (send class :show)
|       Object is #<Object: #23fe2>, Class is #<Object: #23fe2>
|         MESSAGES = ((:ANSWER . #<Subr-: #23e48>) 
|                     (:ISNEW . #<Subr-: #23e84>) 
|                     (:NEW . #<Subr-: #23ea2>))
|         IVARS = (MESSAGES IVARS CVARS CVALS SUPERCLASS 
|                  IVARCNT IVARTOTAL)
|         CVARS = NIL
|         CVALS = NIL
|         SUPERCLASS = #<Object: #23fd8>
|         IVARCNT = 7
|         IVARTOTAL = 7
|       #<Object: #23fe2>
|________________________________________________________________

CLASS has a superclass of OBJECT. It's class is itself - CLASS.


Go to the first, previous, next, last section, table of contents.