Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.forth Subject: Re: Forth Implementations advantages and disadvantages. Date: Tue, 30 May 2017 01:07:32 -0700 Organization: A noiseless patient Spider Lines: 8 Message-ID: <87ziduoji3.fsf@nightsong.com> References: <5e95a740-f9cd-4f6b-a806-59afb1e5e5d6@googlegroups.com> <62e10459-9520-4e7b-b378-cff16e351fa7@googlegroups.com> <76d52560-abac-4a83-a208-f63355f8852e@googlegroups.com> <224d03a6-8c72-4eea-9021-72052056c44d@googlegroups.com> <0fee3892-c86e-4d78-b925-7c97bc4f2a4c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="36fe89267e9247eb90cd7739500048b2"; logging-data="10304"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WkcVaFXYjGCgXPTZKVUFe" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:CZX1q7R8wzckh6qW9vAlN1rRWpc= sha1:PJqJifjoKcdyQqZnysidSNJ48oo= Xref: csiph.com comp.lang.forth:60051 Cecil Bayona writes: > I have not read on it but how are ANS locals implemented? I don't think they prescribe an implementation technique, but the usual approaches are put them in the return stack (maybe with a frame pointer), or put them in a separate locals stack. Either way you need a temporary wordlist, and stuff to clean it all up on returning from the function or if something throws an exception.