Re: Another gotcha: using exit in a macro exits the caller not the macro
Samuel Tardieu <[email protected]> 29 Nov 2004 01:14:57 +0100
| Newsgroups | gmane.comp.lang.forth.picforth |
|---|---|
| Organization | Avian Carrier & Friends |
| Message-ID | <[email protected]> |
>>>>> "Alex" == Alex Holden <[email protected]> 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 -- [email protected] -- http://www.rfc1149.net/sam