Skip leading spaces and parse name delimited by a space. Perform the "TO name run-time" semantics given in the definition for the defining word of name. An ambiguous condition exists if name was not defined by a word with "TO name run-time" semantics.
Skip leading spaces and parse name delimited by a space. Append the "TO name run-time" semantics given in the definition for the defining word of name to the current definition. An ambiguous condition exists if name was not defined by a word with "TO name run-time" semantics.
Some implementations of TO do not parse; instead they set a mode flag that is tested by the subsequent execution of name. Standard programs must use TO as if it parses. Therefore TO and name must be contiguous and on the same line in the source text.
ruv Should TO be findable?Request for clarification2018-09-22 09:05:37
Since "an ambiguous condition exists if any of POSTPONE, [COMPILE], ' or ['] are applied to TO", does ambiguous condition exist if
[DEFINED] is applied to
May a standard programme get xt of
SEARCH-WORDLIST? If yes, what semantics should this xt bring?
TO word be absent in FORTH-WORDLIST in a standard Forth system that actually supports
ruv Ambiguous conditionsRequest for clarification2019-07-14 09:59:48
1. Why does an ambiguous condition exist if
[COMPILE] are applied to
TO, despite the compilation semantics of
TO is well defined?
I can guess that in some Forth system implementations it was difficult to correctly implement
POSTPONE TO or
[COMPILE] TO actions. But the committee felt that such implementations must be allowed in anyway.
2. In Forth-2012 another ambiguous condition was also mentioned: if
['] are applied to
TO (that was not mentioned explicitly in Forth-94).
Is this ambiguity is a consequence of the specification, or does it have roots outside the specification?
TG9541 What is the intent, purpose or meaning of TO?Example2021-04-17 06:23:37
The word interpretation and compilation semantic of the word is defined but I fail to understand the context of its usage without, at least, an example. In order to use or implement
TO but as a human I first have to understand the intent, purpose or meaning of the word in the context of Forth.
Rationale: in the English language the word
to has many idiomatic uses - coming from a Forth-79 background its purpose, meaning or intent isn't obvious and no reference to the documentation of modern implementation is offered.