Hi Matthias, Matthias Trute <mtr...@web.de> writes:
> Hi Enoch, > >> Shouldn't ALSO be corrected as follows: > > ANS94 has in section 16.6.2.0715 ALSO the following specification > > "Transform the search order consisting of widn, ... wid2, wid1 (where > wid1 is searched first) into widn, ... wid2, wid1, wid1. An ambiguous > condition exists if there are too many word lists in the search order." > > Essentially a DUP on the search order stack with a weak stack overflow > check. > > Your code does something different, reminds to what vocabulary > (not part of ANS94) is made for. > > your example should better be written as > > > vocabulary liby > > only also liby True indeed, that is how gForth and others do it but they have full support of vocabulary in the kernel while we don't. > or > > wordlist constant liby > > only also > > get-order swap drop liby swap set-order yes, that's if we take Forth 2012 RC2 seriously. > vocubulary's runtime destroys the top-of-searchorderstack, not > what I'd have invented myself. > > vocabulary.frt is in the lib directory. > > Finally: Your idea is great, but I can't accept your patch ;) No ill feelings :-) > In my internal code base I have a few words for word-list management > that did not found their way to the public repo. Mostly because > they are suggested by some people who got punished after publishing > them (mostly on clf). I don't like to be punished ;) > > : >order ( wid -- ) >r get-order r> swap 1+ set-order ; > : order> ( -- wid ) get-order swap >r 1- set-order r> ; Mentioning c.f.l I started following it recently having discovered that EMACS GNUS can handle RSS feeds. Anyway, guess what is the first discussion that I fell upon. A suggestion how to handle forward references by Paul Rubin http://tinyurl.com/oh8apae (late binding). Are you familiar with Mitch Bradley openfirmware code base? svn://openfirmware.info/openfirmware Their forward reference implementation is here: openfirmware/forth/kernel/forward.fth Should we do likewise? Regards, Enoch. ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel