Deutsch   English   Français   Italiano  
<8e20f39a3d8702fe97b8bfdad21d853a@www.novabbs.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: minforth@gmx.net (minforth)
Newsgroups: comp.lang.forth
Subject: Re: Avoid treating the stack as an array [Re: "Back & Forth" is back!]
Date: Mon, 16 Sep 2024 14:37:50 +0000
Organization: novaBBS
Message-ID: <8e20f39a3d8702fe97b8bfdad21d853a@www.novabbs.com>
References: <nnd$61e0ad9a$48ed61c2@b4d945e456041481> <2024Sep15.181634@mips.complang.tuwien.ac.at> <vc7ju4$2cu8t$1@dont-email.me> <87o74o1thp.fsf@nightsong.com> <vc97od$2r97o$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
	logging-data="2285129"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="0+ejqm+s29REto3A2x2P4fP+XaUXf51pZgtYBR0nEqI";
User-Agent: Rocksolid Light
X-Rslight-Posting-User: d2a19558f194e2f1f8393b8d9be9ef51734a4da3
X-Rslight-Site: $2y$10$qMODGyM/fNE19VjrE9CzkOrCx13j5E6QMZRErGbk8KI94LCVcx8/S
X-Spam-Checker-Version: SpamAssassin 4.0.0
Bytes: 1508
Lines: 11

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
  ... ;