Sujet : Re: Back & Forth - Co-routines
De : albert (at) *nospam* spenarnc.xs4all.nl
Groupes : comp.lang.forthDate : 06. Feb 2025, 12:11:28
Autres entêtes
Organisation : KPN B.V.
Message-ID : <nnd$792516cb$3a3bfcb1@682eb96c76e96e6d>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <3c3bdb056696f15c43fa512b5366002d@
www.novabbs.com>,
minforth <
minforth@gmx.net> wrote:
On Tue, 4 Feb 2025 12:26:26 +0000, albert@spenarnc.xs4all.nl wrote:
Remark that is doesn't introduce any unfamiliar syntax,
only does away with "Forth shall not nested definitions"
(Says who?)
>
Given that a Forth system supports quotations and xt-locals,
nested definitions are easy to implement. BTW xt-locals exist
f.ex. in gforth. They hold xt's and when called execute the xt
instead of pushing it to the stack as normal locals would do.
Right. I've shown that it is easy, that is nothing new.
What also isn't new that gforth insists on introducing another
special syntax, words and idioms that are unnecessary.
With my enhanced [ ] pair, you can introduce whatever local
widgets, in particular objects, you choose.
The goal of language design is not to overload with features,
but attain expressiveness with the least amount of concepts.
Groetjes Albert
-- Temu exploits Christians: (Disclaimer, only 10 apostles)Last Supper Acrylic Suncatcher - 15Cm Round Stained Glass- Style WallArt For Home, Office And Garden Decor - Perfect For Windows, Bars,And Gifts For Friends Family And Colleagues.