Sujet : Re: Why dial-a-standard is not a thing in Forth
De : anton (at) *nospam* mips.complang.tuwien.ac.at (Anton Ertl)
Groupes : comp.lang.forthDate : 20. Apr 2025, 13:53:00
Autres entêtes
Organisation : Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID : <2025Apr20.145300@mips.complang.tuwien.ac.at>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : xrn 10.11
dxf <
dxforth@gmail.com> writes:
Perhaps it's been updated since as the SwiftForth file I have has:
>
: DECIMAL ( -- ) $0A BASE ! ;
Interesting: SwiftForth 3.10.4, 3.11.0, and 4.0.0-RC52 contain
: DECIMAL ( -- ) $0A BASE ! ;
while SwiftForth 4.0.0-RC87 and 4.0.0-RC89 contain
: DECIMAL ( -- ) 10 BASE ! ;
Gforth has the worst of both worlds:
: decimal ( -- ) \ core
\G Set @code{base} to &10 (decimal). Don't use @code{decimal}, use
\G @code{base-execute} instead.
a base ! ;
- 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 2023 proceedings: http://www.euroforth.org/ef23/papers/EuroForth 2024 proceedings:
http://www.euroforth.org/ef24/papers/