[PicForth] Re: Another gotcha: using exit in a macro exits the caller not the macro

Samuel Tardieu sam at rfc1149.net
Mon Nov 29 01:14:57 CET 2004


>>>>> "Alex" == Alex Holden <alex at linuxhacker.org> writes:

Alex> I just tripped over another gotcha (perhaps it's obvious to
Alex> others but I didn't expect it). When a word is a macro, exit
Alex> operates within the context of the word which calls the macro
Alex> instead of in the context of the macro.

This is expected. Forth which do allow inline words have the same
problem. I shall add a note in the documentation.

  Sam
-- 
Samuel Tardieu -- sam at rfc1149.net -- http://www.rfc1149.net/sam



More information about the PicForth mailing list