15.6.2.2530.30 [DEFINED] bracket-defined TOOLS EXT
Compilation:
Execution:
Skip leading space delimiters. Parse name delimited by a space. Return a true flag if name is the name of a word that can be found (according to the rules in the system's FIND); otherwise return a false flag. [DEFINED] is an immediate word.
Implementation:
ContributeContributions
ruv [86] The case of undefined interpretation semanticsRequest for clarification2019-06-26 12:09:31
By this specification, [DEFINED]
word checks whether a name can be found according to the rules in the system's FIND
.
1. According to "4.1.2 Ambiguous conditions", the definitions with undefined interpretation semantics may be not found by FIND
in a standard Forth system. In this case [DEFINED]
shall return false flag on such definition names. Is it correct?
2. If FIND
throws an exception on such definitions (as possible action on an ambiguous condition), [DEFINED]
shall throw the same exception as well. Is it correct?
3. As a consequence, a standard program shall not apply [DEFINED]
on such definition names as IF
, EXIT
, COMPILE,
, etc — since it is an ambiguous condition. Is it correct?