home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.forth      Forth programmers eat a lot of Bratwurst      117,927 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 117,222 of 117,927   
   albert@spenarnc.xs4all.nl to All   
   Re: Why dial-a-standard is not a thing i   
   18 Apr 25 13:40:57   
   
   [continued from previous message]   
      
   >I assume you mean wordlists.  Yes, the effect of switching between the   
   >Forth-83 NOT and the Forth-79 NOT can be achieved by having a wordlist   
   >containing the Forth-79 words and a wordlist containing the Forth-83   
   >words, and putting it in the search order.   
   >   
   >>So, if we compile an external library using a mix of Forth-79, ANS Forth   
   >>and Forth 2012, it could be as simple as:   
   >>   
   >>INCLUDE a.fs   
   >>INCLUDE b.fs   
   >>[FORTH2012]   
   >>   
   >>a.fs:   
   >>[FORTH79]   
   >>...   
   >>   
   >>b.fs:   
   >>[ANSFORTH]   
   >>...   
   >   
   >There is 79-STANDARD, but there is no word equivalent to [FORTH2012]   
   >or [ANSFORTH].  So a program that contains "[FORTH2012]" without first   
   >defining it is not Forth-2012-compliant.  And a program that contains   
   >[ANSFORTH] without first defining it is not Forth-94 compliant.   
   >   
   >>That's much like setting the radix.   
   >   
   >BASE is one of the misfeatures of Forth, and demonstrates the   
   >disadvantage of having a state for the rest of the text   
   >interpretation, and the Chuck Moore approach to .  Do you start every   
   >file with DECIMAL or HEX?  Looking at SwiftForth (where one might   
   >expect the most Chuck Moore influence), I see 26 occurences of DECIMAL   
   >and 16 occurences of HEX, and usually not before the first occurence   
   >of an integer with several digits.  As an example, the file that   
   >contains the definition   
   >   
   >: DECIMAL ( -- )   10 BASE ! ;   
   >   
   >does not contain an invocation of DECIMAL before this use of "10".   
   >   
   >>So - why couldn't this work?   
   >   
   >As mentioned, there is no [FORTH2012] and no [ANSFORTH].   
   >   
   >Moreover, this general approach does not work for BASE: If the next   
   >standard required that systems start out in, say, octal, I am sure   
   >that a lot of the existing source files would fail unless you invoked   
   >DECIMAL before the INCLUDE.  BASE only works (and only so-so) because   
   >every sane system defaults to DECIMAL, and that does not change   
   >between standard versions.   
   >   
   >- 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/   
   --   
   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.   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca