in reply to Re: Double your return!!!!
in thread Double your return!!!!
gives the output:: foo ( -- ) ." enter foo" cr rdrop exit ." exit foo" cr ; : bar ( -- ) ." enter bar" cr foo ." exit bar" cr ; : baz ( -- ) ." enter baz" cr bar ." exit baz" cr ;
If your forth doesn't have rdrop, use r> drop or define it with: : rdrop r> r> drop >r ;enter baz enter bar enter foo exit baz
I also strongly recall having seen words specifically for this purpose, but I can't find one in this forth (maybe they left it out in modern implementations)
|
|---|