Date: Wed, 11 Sep 2024 12:03:05 +1000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Avoid treating the stack as an array [Re: "Back & Forth" is back!] Newsgroups: comp.lang.forth References: <66d26c4b$1@news.ausics.net> <87bk0vbvgk.fsf@nightsong.com> Content-Language: en-GB From: dxf In-Reply-To: <87bk0vbvgk.fsf@nightsong.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit NNTP-Posting-Host: news.ausics.net Message-ID: <66e0fa58$1@news.ausics.net> Organization: Ausics - https://newsgroups.ausics.net Lines: 14 X-Complaints: abuse@ausics.net Path: ...!weretis.net!feeder9.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.ausics.net!not-for-mail Bytes: 1667 On 10/09/2024 9:26 pm, Paul Rubin wrote: > Hans Bezemer writes: >> What bothers me most technologically is that parameters flow through >> the stack undisturbed. You break that paradigm when using locals. With >> locals you *HAVE TO* create some kind of stack frame that you have to >> destroy when you exit. > > Forth programs very frequently end up juggling parameters and other data > to and from the return stack, instead of using locals. Looking at an application with 154 colon definitions, only 2 were found to use the return stack for temporary storage. Even I was surprised :)