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,570 of 117,927   
   albert@spenarnc.xs4all.nl to Anton Ertl   
   Re: 0 vs. translate-none   
   24 Sep 25 00:41:24   
   
   In article <2025Sep23.190034@mips.complang.tuwien.ac.at>,   
   Anton Ertl  wrote:   
   >albert@spenarnc.xs4all.nl writes:   
   >>In article <2025Sep22.103934@mips.complang.tuwien.ac.at>,   
   >>Anton Ertl  wrote:   
   >>>albert@spenarnc.xs4all.nl writes:   
      
   >So defining a prefix "0r" shadows all earlier-defined words starting   
   >with "0r"?  One has to choose the prefixes well, but the same is true   
   >for what recognizers should recognize.   
      
   A more realistic example is $ for hex numbers. A sensible implementation   
   is to define that in the minimum search order, such that words added to   
   Forth itself can start with $ e.g. $= to compare two strings.   
      
      
      
   >   
   >However, LITERAL is a standard word that a conforming implementation   
   >cannot implement in a state-smart way.   
   >   
   >: lit, postpone literal ;   
   >: foo [ 1 lit, ] ;   
   >foo . \ 1   
      
   This shows me how to Lift this defect. Rename LITERAL to (LIT) and   
   define   
   : LITERAL 'LIT , , ;  IMMEDIATE   
   Then the above test succeeds.   
   The interpretation syntax of LITERAL is undefined.   
   LIT, is a sneaky way to have an interpretation syntax.   
   Normal is   
      : foo [ 1 ] LITERAL ;   
      
   In the standard:   
   LITERAL :   
   Interpretation: Interpretation syntax for this word is undefined.   
      
   What if the standard says   
      execution of this word while in interpret mode is an ambiguous condition   
      
   then I would gladly throw an exception if anybody tries it and the examples   
   wouldn't fly.   
      
   >   
   >(Gforth, iForth, SwiftForth64, and VFX64 process this example correctly).   
   >   
   >>To end the controversy, maybe I have to admit I have smart numbers,   
   >>but I manage to be ISO-94 compliant.   
      
   In view of the above, not yet.   
      
   >   
   >- anton   
   --   
   The Chinese government is satisfied with its military superiority over USA.   
   The next 5 year plan has as primary goal to advance life expectancy   
   over 80 years, like Western Europe.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

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


(c) 1994,  bbs@darkrealms.ca