THE 'Class' CLASS


Class THE CLASS OF ALL OBJECT CLASSES (including itself)

Messages:


CREATE A NEW INSTANCE OF A CLASS

:new


INITIALIZE A NEW CLASS

:isnew <ivars> [<cvars> [<super>]]


ADD A MESSAGE TO A CLASS

:answer <msg> <fargs> <code>


GET THE SUPERCLASS OF THE OBJECT

:superclass

(defined in classes.lsp)


GET THE LIST OF MESSAGES OF THE CLASS

:messages

(defined in classes.lsp)


READ REPRESENTATION

:storeon

(defined in classes.lsp)

When a new instance of a class is created by sending the message ':new' to an existing class, the message ':isnew' followed by whatever parameters were passed to the ':new' message is sent to the newly created object. Therefore, when a new class is created by sending ':new' to class 'Class' the message ':isnew' is sent to Class automatically. To create a new class, a function of the following format is used:

(setq <newclassname> (send Class :new <ivars> [<cvars> [<super>]]))
When a new class is created, an optional parameter may be specified indicating the superclass of the new class. If this parameter is omitted, the new class will be a subclass of 'Object'. A class inherits all instance variables, and methods from its super-class. Only class variables of a method's class are accessable.


XLISP-PLUS - Version 2.1g - Tom Almy tom.almy@tek.com - 18 JUL 94
Generated with
WebMaker