version 1.15, 1999/07/05 19:56:01
|
version 1.17, 1999/07/24 13:07:19
|
Line 359 variable public-wordlist
|
Line 359 variable public-wordlist
|
\ : to-this ( object -- ) |
\ : to-this ( object -- ) |
\ thisp ! ; |
\ thisp ! ; |
|
|
: m: ( -- xt colon-sys; run-time: object -- ) \ objects- objects |
: enterm ( -- ; run-time: object -- ) |
\g Start a method definition; @var{object} becomes new @code{this}. |
\g method prologue; @var{object} becomes new @code{this}. |
:noname |
|
POSTPONE this |
POSTPONE this |
POSTPONE >r |
POSTPONE >r |
POSTPONE to-this ; |
POSTPONE to-this ; |
|
|
|
: m: ( -- xt colon-sys; run-time: object -- ) \ objects- objects |
|
\g Start a method definition; @var{object} becomes new @code{this}. |
|
:noname enterm ; |
|
|
|
: :m ( "name" -- xt; run-time: object -- ) \ objects- objects |
|
\g Start a named method definition; @var{object} becomes new |
|
\g @code{this}. Has to be ended with @code{;m}. |
|
: enterm ; |
|
|
: exitm ( -- ) \ objects- objects |
: exitm ( -- ) \ objects- objects |
\g @code{exit} from a method; restore old @code{this}. |
\g @code{exit} from a method; restore old @code{this}. |
Line 486 method print ( object -- ) \ objects- ob
|
Line 494 method print ( object -- ) \ objects- ob
|
\g Print the object. The method for the class @var{object} prints |
\g Print the object. The method for the class @var{object} prints |
\g the address of the object and the address of its class. |
\g the address of the object and the address of its class. |
|
|
|
selector equal ( object1 object2 -- flag ) |
|
|
end-class object ( -- class ) \ objects- objects |
end-class object ( -- class ) \ objects- objects |
\g the ancestor of all classes. |
\g the ancestor of all classes. |
|
|