Sujet : Re: Juggling system-compilation items
De : mhx (at) *nospam* iae.nl (mhx)
Groupes : comp.lang.forthDate : 12. Aug 2024, 18:06:39
Autres entêtes
Organisation : novaBBS
Message-ID : <4bfa396150e458f8a19ac39f9328d42e@www.novabbs.com>
References : 1 2 3
User-Agent : Rocksolid Light
On Mon, 12 Aug 2024 12:09:36 +0000, Krishna Myneni wrote:
[..]
: const : postpone literal postpone ; ;
>
No return stack juggling needed because ":" does not introduce anything
onto the data stack. Balancing of control structures are verified.
>
This is quite useful when passing args to colon defs as well as to
quotations.
Seconded. In iForth the scheme is less rigorous [1], but it is enough
to allow argument passing to code in progress. This has proved
incredibly useful for my iSPICE code generators (the circuit netlist
is completely converted to early binding machine code).
-marcel
[1] If all control info is passed on the S-stack, the stack juggling
becomes too hairy for my taste.