Go to the
first,
previous,
next,
last section,
table of contents.
There have been a few of the messages and methods in XLISP shown to this
point (:NEW and :SHOW). The following are the methods built into XLISP:
:ANSWER
-
The :ANSWER method allows you to define or change methods within a
class.
:CLASS
-
The :CLASS method returns the class of an object.
:ISNEW
-
The :ISNEW method causes an instance to run its initialization code.
When the :ISNEW method is run on a class, it resets the class state.
This allows you to re-define instance variables, class variables, etc.
:NEW
-
The :NEW method allows you to create an instance when the :NEW message
is sent to a user-defined class. The :NEW method allows you to create a
new class (when the :NEW message is sent to the built-in CLASS).
:SHOW
-
The :SHOW method displays the instance or class.
Go to the
first,
previous,
next,
last section,
table of contents.