Re: Feature Requests

Samuel Tardieu <[email protected]> 19 Nov 2004 23:29:11 +0100
Newsgroups gmane.comp.lang.forth.picforth
Organization Avian Carrier & Friends
Message-ID <[email protected]>
>>>>> "David" == David McNab <[email protected]> writes:

David> 3) Statement block sanity checking

David> PicForth doesn't do much checking about whether :/;,
David> if/else/then, 'begin/again', 'begin/while/repeat' etc
David> constructs are structured correctly. I just spent a while
David> hunting a bug, which was caused by me missing out a 'then'.

Implemented in my development version.

David> Also, PicForth is not complaining if it sees a ':' inside a
David> word (or is this an intentional feature allowing one to call
David> into the middle of a word?).

I wanted to allow a ":" word to fallback into a "code" word as was
done in "dcc2.fs". However, there is no real justification for that,
and it complicates code analysis. I've removed this possibility and
added a check against nested definitions in my development version.

  Sam
-- 
Samuel Tardieu -- [email protected] -- http://www.rfc1149.net/sam