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


Usage

Basically, there are seven words, to define a method, a variable, a class; to end a class, to define a method, to allocate an object, to resolve binding, and the base class (which allocates one cell for the object pointer).

method       m v -- m' v         unknown       ``method''

Defines a method

var       m v size -- m v'         unknown       ``var''

Defines a variable with size bytes

class       class -- class methods vars         unknown       ``class''

Starts the definition of a sub-class

end-class       class methods vars --         unknown       ``end-class''

Ends the definition of a class

defines       xt class "name" --         unknown       ``defines''

Binds the xt to the method name in the class

new       class -- o         unknown       ``new''

Creates a new incarnation of the class

::       class "name" --         unknown       ``::''

Compiles the method name of the class (not immediate!)

object              unknown       ``object''

Is the base class of all objects


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