Sujet : Re: Operator overloading?
De : anton (at) *nospam* mips.complang.tuwien.ac.at (Anton Ertl)
Groupes : comp.lang.forthDate : 25. Jul 2024, 13:08:58
Autres entêtes
Organisation : Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID : <2024Jul25.140858@mips.complang.tuwien.ac.at>
References : 1 2 3
User-Agent : xrn 10.11
minforth@gmx.net (minforth) writes:
Thanks. But it seems this is only the old 16-bit DOS version.
Looking at the Vierte Dimension 2/2024, which arrived this week, I
find another article about the new, 32-bit strongForth, and also the
link
https://www.stephan-becher.de/strongforth3/I have been looking for the ANS-compatible layer file
mentioned in the discussion.
>
IMHO and without belittling strongforth's merits, I think
that it went too far and proposed another Forth dialect.
Whether it's too far or not is up to the recipient to decide. But
yes, if you have a single and a double on the stack, say "1 2.", then
in standard Forth you have to use ROT to switch them around, while in
StrongForth you use SWAP.
I am thinking on a much smaller scale i.e. unification of
operators for xVALUEs and xLOCALs. ANS Forth already has
overloaded TO but stops there.
+TO is a common extension.
- 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