stack-checker.*: infer doesn't need to be generic
parent
0c7b871de7
commit
120807c827
|
@ -157,9 +157,6 @@ M: object apply-object push-literal ;
|
||||||
stack-visitor get
|
stack-visitor get
|
||||||
] with-scope ; inline
|
] with-scope ; inline
|
||||||
|
|
||||||
: (infer) ( quot -- effect )
|
|
||||||
[ infer-quot-here ] with-infer drop ;
|
|
||||||
|
|
||||||
: ?quotation-effect ( in -- effect/f )
|
: ?quotation-effect ( in -- effect/f )
|
||||||
dup pair? [ second dup effect? [ drop f ] unless ] [ drop f ] if ;
|
dup pair? [ second dup effect? [ drop f ] unless ] [ drop f ] if ;
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,8 @@ stack-checker.errors stack-checker.inlining
|
||||||
stack-checker.visitor.dummy ;
|
stack-checker.visitor.dummy ;
|
||||||
IN: stack-checker
|
IN: stack-checker
|
||||||
|
|
||||||
GENERIC: infer ( quot -- effect )
|
: infer ( quot -- effect )
|
||||||
|
[ infer-quot-here ] with-infer drop ;
|
||||||
M: callable infer ( quot -- effect )
|
|
||||||
(infer) ;
|
|
||||||
|
|
||||||
: infer. ( quot -- )
|
: infer. ( quot -- )
|
||||||
! Safe to call from inference transforms.
|
! Safe to call from inference transforms.
|
||||||
|
|
Loading…
Reference in New Issue