| Deutsch English Français Italiano |
|
<nnd$5ed9835e$5e39672d@d86e74c09230050f> View for Bookmarking (what is this?) Look up another Usenet article |
Newsgroups: comp.lang.forth References: <vfslvv$20cbt$1@dont-email.me> From: albert@spenarnc.xs4all.nl Subject: Re: named wordlist X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: albert@cherry.(none) (albert) Message-ID: <nnd$5ed9835e$5e39672d@d86e74c09230050f> Organization: KPN B.V. Date: Wed, 30 Oct 2024 13:59:56 +0100 Path: ...!feeds.phibee-telecom.net!2.eu.feeder.erje.net!feeder.erje.net!feeder2.feed.ams11.usenet.farm!feed.usenet.farm!feed.abavia.com!abe005.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail Lines: 64 Injection-Date: Wed, 30 Oct 2024 13:59:56 +0100 Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com" Bytes: 2903 In article <vfslvv$20cbt$1@dont-email.me>, Ruvim <ruvim.pinka@gmail.com> wrote: >When a word list is created with `vocabulary`, it is associated with a >name, and `order` displays this name in its output. > >When a word list is created by `wordlist`, it is not associated with a >name. Therefore, `order` typically displays a number for that word list, >which is less informative. > >A Forth system might try to find a constant whose value is identical to >the wid of such word list and display the name of the constant. Do you >know if this approach is used anywhere? > >Some Forth systems technically can associate a name with a word list >after the word list is created with `wordlist`. And some even provide an >API for doing so. > >Do you know of any Forth systems that technically *cannot* associate a >name with a word list created with `wordlist` (due to internal details)? VOCABULARY didn't make it in the standard because conflicts. Every sane Forth uses VOCABULARY , or in my case NAMESPACE because I didn't want to make a choice. [If you load a program and you get the definition of VOCABULARY incompatible, and you don't notice it, this means a hard to find bug] So every sane Forth normally displays the names of namespaces, (and not the handles you get form GET-ORDER,) however they are defined via VOCABULARY or NAMESPACE. However: Supposed I abuse the data structure wordlist in a lisp implementation. They are used with SEARCH-WORDLIST and some such, but if they happens to be present in the search order, it make no sense to hunt for a name associated with it. A typical situation is WORDLIST CONSTANT my-lisp-whatever Are you going to inspect all constants? or worse _ _ class lisp M: lisp-words ALSO @ CONTEXT ! M; ( wordlist id commaed in ) , M: .... M; . M: whatever ... M; endclass Usage : 17 wordlist lisp my-lisp >-- >Ruvim > Groetjes Albert -- Temu exploits Christians: (Disclaimer, only 10 apostles) Last Supper Acrylic Suncatcher - 15Cm Round Stained Glass- Style Wall Art For Home, Office And Garden Decor - Perfect For Windows, Bars, And Gifts For Friends Family And Colleagues.