Sujet : Re: Avoid treating the stack as an array [Re: "Back & Forth" is back!]
De : minforth (at) *nospam* gmx.net (minforth)
Groupes : comp.lang.forthDate : 16. Sep 2024, 15:37:50
Autres entêtes
Organisation : novaBBS
Message-ID : <8e20f39a3d8702fe97b8bfdad21d853a@www.novabbs.com>
References : 1 2 3 4 5
User-Agent : Rocksolid Light
On Mon, 16 Sep 2024 12:19:25 +0000, Stephen Pelc wrote:
Local buffers are remarkably useful.
True. In addition, to pass the address of normal locals
to other words or to external library functions
(pass-by-reference instead of pass-by-value)
I borrowed the address operator & from C, like in:
: FUNC { f: a b -- badr f: aval }
... a \ push value of a to fp-stack
... &b \ push address of b to stack
... ;