| Deutsch English Français Italiano |
|
<e3b90354c056c72b41a5d88ddb2bbf89@www.novabbs.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!news.nk.ca!rocksolid2!i2pn2.org!.POSTED!not-for-mail From: minforth@gmx.net (minforth) Newsgroups: comp.lang.forth Subject: Re: Back & Forth - Co-routines Date: Sun, 9 Feb 2025 08:18:41 +0000 Organization: novaBBS Message-ID: <e3b90354c056c72b41a5d88ddb2bbf89@www.novabbs.com> References: <nnd$2fb29a8e$298ef3f8@23fe4f00fa62d734> <vnq10p$162l3$1@dont-email.me> <nnd$28e37865$1ff3c947@ec3118cc4d5fd42b> <874j1aycdt.fsf@nightsong.com> <nnd$68d49e22$0e1b270a@ce4705a037955a82> <3c3bdb056696f15c43fa512b5366002d@www.novabbs.com> <2025Feb6.135712@mips.complang.tuwien.ac.at> <3955434636b2a293c6a9c6d726ff6eae@www.novabbs.com> <2025Feb6.180659@mips.complang.tuwien.ac.at> <2cf9bd53562dae1241a161036e87cd6b@www.novabbs.com> <2025Feb8.120627@mips.complang.tuwien.ac.at> <d07c4acc7550b7fd08802106ba83c5dd@www.novabbs.com> <87wmdzwq8w.fsf@nightsong.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: i2pn2.org; logging-data="3390953"; mail-complaints-to="usenet@i2pn2.org"; posting-account="BZ29EnRIXfdX99fE+pfHgueF2xuF1KvSpLJsfuOZy3Y"; User-Agent: Rocksolid Light X-Rslight-Site: $2y$10$HZ1aBi4xwrsJHMMnlZ05W.QHEWlJZsrKpa8FnhquxIEVzZ84MFwWm X-Rslight-Posting-User: 0338a3da6f3e9c9f1401b365bcd9c3ed8de2227a X-Spam-Checker-Version: SpamAssassin 4.0.0 Bytes: 2175 Lines: 14 On Sun, 9 Feb 2025 7:07:11 +0000, Paul Rubin wrote: > minforth@gmx.net (minforth) writes: >> Thanks, that makes sense. Each call to the outer function >> creates a data record for (the contexts of) each of its inner >> closure(s). The context records need to be managed somehow. > > Most languages with closures also have garbage collection, or anyway > scope-controlled deallocation like in C++. It may not be obvious, but > closures are sort of the same thing as OOP, just viewed from a different > angle. Storage for the internal data of OOP instances has to be managed > in about the same way. I found a good article that starts with an anecdote about Anton :-) https://kidneybone.com/c2/wiki/ClosuresAndObjectsAreEquivalent