Paste: lookup problems
Author: | GeoffSK |
Mode: | factor |
Date: | Sat, 23 May 2009 05:10:23 |
Plain Text |
: func 2 * ; inline
: do-funcs
"scatchpad" lookup dup
[ execute ]
[ drop "Not found" ]
if
print
;
Author: | slava |
Mode: | factor |
Date: | Sat, 23 May 2009 05:19:24 |
Plain Text |
slava> the problem is not lookup, its execute
<slava> the compiler has no way of knowing what the stack effect of your word is, since you look it up dynamically
<slava> you want to use execute
<slava> \ execute
<slava> eg, 1 2 \ + execute
New Annotation