Change parser so that M:: can use call-next-method
parent
c832abae86
commit
d3660002c5
|
@ -421,14 +421,17 @@ ERROR: bad-number ;
|
||||||
SYMBOL: current-class
|
SYMBOL: current-class
|
||||||
SYMBOL: current-generic
|
SYMBOL: current-generic
|
||||||
|
|
||||||
: (M:)
|
: with-method-definition ( quot -- parsed )
|
||||||
CREATE-METHOD
|
|
||||||
[
|
[
|
||||||
|
>r
|
||||||
[ "method-class" word-prop current-class set ]
|
[ "method-class" word-prop current-class set ]
|
||||||
[ "method-generic" word-prop current-generic set ]
|
[ "method-generic" word-prop current-generic set ]
|
||||||
[ ] tri
|
[ ] tri
|
||||||
parse-definition
|
r> call
|
||||||
] with-scope ;
|
] with-scope ; inline
|
||||||
|
|
||||||
|
: (M:)
|
||||||
|
CREATE-METHOD [ parse-definition ] with-method-definition ;
|
||||||
|
|
||||||
: scan-object ( -- object )
|
: scan-object ( -- object )
|
||||||
scan-word dup parsing?
|
scan-word dup parsing?
|
||||||
|
|
Loading…
Reference in New Issue