-
|
I've had a GitHub issued opened concerning Post4. At the heart of it is the issue of nesting definitions. This code from Rosetta: I contend this is invalid according to the Forth 200x draft 19.1:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
This definition for A problem can occur when executing A correct usage example: ' foo ' bar compose constant func-foobarIn this case, the current definition is absent when An incorrect usage example: In this case, the current definition is present when |
Beta Was this translation helpful? Give feedback.
This definition for
composedoes not contain nested definitions, and there is no attempt to nest compilation of definitions. So, this definition forcomposeis standard-compliant in Forth-1994, as well as in Forth-2012.A problem can occur when executing
compose. Namely, if it is executed while another definition is being compiled (i.e., the current definition is present), it violates 3.4.5.A correct usage example:
In this case, the current definition is absent when
composeis executed.An incorrect usage example:
In this case, the current definition is present when
composeis executed — namely, compilat…