Sujet : Re: VALUE and TO implementation (was: Operator overloading?)
De : anton (at) *nospam* mips.complang.tuwien.ac.at (Anton Ertl)
Groupes : comp.lang.forthDate : 31. Jul 2024, 18:33:44
Autres entêtes
Organisation : Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID : <2024Jul31.193344@mips.complang.tuwien.ac.at>
References : 1 2 3 4 5 6
User-Agent : xrn 10.11
Ruvim <
ruvim.pinka@gmail.com> writes:
A testcase:
>
: apply-compiling(to) ( sd.name -- )
[: postpone to ;] execute-parsing
;
The standard says (in 6.2.2295):
|An ambiguous condition exists if any of POSTPONE, [COMPILE], ' or [']
|are applied to TO.
NB: "postpone" can be defined in a standard way via "find-name" so that
is apples to "to" [2].
But FIND-NAME is not in Forth-2012. Maybe those who like this kind of
TO implementation will make a proposal that means that you cannot
POSTPONE TO with a user-defined POSTPONE. Note that FIND and
SEARCH-WORDLIST are alreading in Forth-94, and TRAVERSE-WORDLIST is in
Forth-2012.
- anton
-- M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.htmlcomp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html New standard: https://forth-standard.org/ EuroForth 2024: https://euro.theforth.net