Deutsch English Français Italiano |
<2025Feb6.180659@mips.complang.tuwien.ac.at> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: anton@mips.complang.tuwien.ac.at (Anton Ertl) Newsgroups: comp.lang.forth Subject: Re: Back & Forth - Co-routines Date: Thu, 06 Feb 2025 17:06:59 GMT Organization: Institut fuer Computersprachen, Technische Universitaet Wien Lines: 25 Message-ID: <2025Feb6.180659@mips.complang.tuwien.ac.at> 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> Injection-Date: Thu, 06 Feb 2025 18:20:43 +0100 (CET) Injection-Info: dont-email.me; posting-host="8c722ff18d197a536e9146b6a5660175"; logging-data="3204489"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18brUBbRv0fMNfaaUf/dIn9" Cancel-Lock: sha1:I+MIf/jYcS9HH2UW6p7MGG2TvUM= X-newsreader: xrn 10.11 Bytes: 1938 minforth@gmx.net (minforth) writes: >: foo > <: bar ." xyz" ;> > bar >; > >I find this quite handy, since upvalues (locals within foo's >context) are accessible from within bar. Do you implement proper static scoping? I.e., does your system pass the man-or-boy test. What about returning xts that reference outer locals, e.g.: : n+ ( n -- xt ) {: n :} [: n + ;] ; 5 n+ constant 5+ 3 5+ execute . 7 5+ execute . - anton -- M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html New standard: https://forth-standard.org/ EuroForth 2023 proceedings: http://www.euroforth.org/ef23/papers/ EuroForth 2024 proceedings: http://www.euroforth.org/ef24/papers/