| Deutsch English Français Italiano |
|
<nnd$4946232b$2af3410b@d0df525a04a1dd3e> View for Bookmarking (what is this?) Look up another Usenet article |
Date: Tue, 11 Mar 2025 22:14:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: "Back & Forth" - Local variables Newsgroups: comp.lang.forth References: <nnd$75b7a2a4$616fdd6b@4f60b314ce95c9b9> <nnd$032b844d$734ee136@776df242e330d1d2> <nnd$18b00be1$6a41106c@750f2b64d19dca67> <775ad5020b3de3cc091ce71506dd0ac5fac16523@i2pn2.org> <nnd$7a83a592$41cf66d7@487ce3b9e8a95308> Content-Language: en-US From: Hans Bezemer <the.beez.speaks@gmail.com> In-Reply-To: <nnd$7a83a592$41cf66d7@487ce3b9e8a95308> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <nnd$4946232b$2af3410b@d0df525a04a1dd3e> Organization: KPN B.V. Path: ...!weretis.net!feeder8.news.weretis.net!nntp.comgw.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feed.abavia.com!abe007.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail Lines: 21 Injection-Date: Tue, 11 Mar 2025 22:14:32 +0100 Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com" Bytes: 1889 On 11-03-2025 12:25, albert@spenarnc.xs4all.nl wrote: > The `;: is present in colorforth. I drew (decennia ago) that it is > equivalent to my `CO. > Maybe a colorforth expert can explain what `;: does, if it is not > the same as `CO. > > For the record. ;: is Moore. CO is mine. Actually, when inlining, ;: can be replaced by EXECUTE if and only if the reference on the Return Stack constitutes a valid xt in the Forth variant. YIELD (aka CO if I'm not mistaken) can be inlined as R> EXECUTE (under the same conditions). Since the LOCAL definition has already moved the return address to the data stack, ;: works.. In an earlier version I moved the return address back to the return stack and executed YIELD. Which (of course) worked. So they're not that far apart IMHO. Hans Bezemer