Update modules for method changes
parent
18d8f449b9
commit
c51ad0aa5a
|
@ -279,7 +279,7 @@ MACRO: with-locals ( form -- quot ) lambda-rewrite ;
|
||||||
! are unified
|
! are unified
|
||||||
: create-method ( class generic -- method )
|
: create-method ( class generic -- method )
|
||||||
2dup method dup
|
2dup method dup
|
||||||
[ 2nip method-word ]
|
[ 2nip ]
|
||||||
[ drop 2dup [ ] -rot define-method create-method ] if ;
|
[ drop 2dup [ ] -rot define-method create-method ] if ;
|
||||||
|
|
||||||
: CREATE-METHOD ( -- class generic body )
|
: CREATE-METHOD ( -- class generic body )
|
||||||
|
@ -369,14 +369,14 @@ M: lambda-method definition
|
||||||
|
|
||||||
: method-stack-effect
|
: method-stack-effect
|
||||||
dup "lambda" word-prop lambda-vars
|
dup "lambda" word-prop lambda-vars
|
||||||
swap "method" word-prop method-generic stack-effect dup [ effect-out ] when
|
swap "method-generic" word-prop stack-effect
|
||||||
|
dup [ effect-out ] when
|
||||||
<effect> ;
|
<effect> ;
|
||||||
|
|
||||||
M: lambda-method synopsis*
|
M: lambda-method synopsis*
|
||||||
dup definer.
|
dup dup definer.
|
||||||
dup "method" word-prop dup
|
"method-specializer" word-prop pprint*
|
||||||
method-specializer pprint*
|
"method-generic" word-prop pprint*
|
||||||
method-generic pprint*
|
|
||||||
method-stack-effect effect>string comment. ;
|
method-stack-effect effect>string comment. ;
|
||||||
|
|
||||||
PRIVATE>
|
PRIVATE>
|
||||||
|
|
|
@ -29,9 +29,8 @@ M: string (profile.)
|
||||||
dup <vocab-profile> write-object ;
|
dup <vocab-profile> write-object ;
|
||||||
|
|
||||||
M: method-body (profile.)
|
M: method-body (profile.)
|
||||||
"method" word-prop
|
dup synopsis swap "method-generic" word-prop
|
||||||
dup method-specializer over method-generic 2array synopsis
|
<usage-profile> write-object ;
|
||||||
swap method-generic <usage-profile> write-object ;
|
|
||||||
|
|
||||||
: counter. ( obj n -- )
|
: counter. ( obj n -- )
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue