| Deutsch English Français Italiano |
|
<00c65eb0d61675581c8e5bd83d47295e47b23eb4@i2pn2.org> 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: dxf <dxforth@gmail.com> Newsgroups: comp.lang.forth Subject: Re: Back & Forth - Co-routines Date: Fri, 21 Mar 2025 11:38:30 +1100 Organization: i2pn2 (i2pn.org) Message-ID: <00c65eb0d61675581c8e5bd83d47295e47b23eb4@i2pn2.org> References: <nnd$2fb29a8e$298ef3f8@23fe4f00fa62d734> <49736c0ec0e34ca5d67f4e0d6e8cbe2a080e38ab@i2pn2.org> <2ec5cfbd438db9be750543c9ebddfa6ffa17583c@i2pn2.org> <nnd$1f42dd83$46acbe92@989dd2363be1c9eb> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Date: Fri, 21 Mar 2025 00:38:31 -0000 (UTC) Injection-Info: i2pn2.org; logging-data="1059591"; mail-complaints-to="usenet@i2pn2.org"; posting-account="XPw7UV90Iy7EOhY4YuUXhpdoEf5Vz7K+BsxA/Cx8bVc"; User-Agent: Mozilla Thunderbird X-Spam-Checker-Version: SpamAssassin 4.0.0 Content-Language: en-GB In-Reply-To: <nnd$1f42dd83$46acbe92@989dd2363be1c9eb> Bytes: 1513 Lines: 10 On 20/03/2025 11:07 pm, Hans Bezemer wrote: > ... > But the major problem is that ' doesn't return an XT, but just a relative address. Without applying >BODY I can't retrieve the original address. So, in order to make this work, I have to redefine it to accommodate those restrictions: > > : (local) ( x xt -- ) r> -rot >body dup @ over 2>r ! ;: 2r> ! ; > > Back ported to Gforth - it works! > ... Slightly smaller (for me) and not less portable. Thanks!