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 116,667 of 117,927   
   Ruvim to Anton Ertl   
   Re: Alternative for long parsing words   
   06 Aug 24 14:12:00   
   
   From: ruvim.pinka@gmail.com   
      
   On 2024-08-05 18:33, Anton Ertl wrote:   
   > Ruvim  writes:   
   >> I meant the word `[IF]` by itself, without connection with `WANT`.   
   >   
   > Not necessarily a parsing word.  Could also be treated as something   
   > like another state (i.e., the text interpreter does the parsing, but   
   > does something different with the words than interpretation state or   
   > compile state.   
      
   > In every case, the interaction with other features is   
   > problematic; e.g., consider:   
   >   
   > 0 [IF]   
   > ...   
   > \ ....   
   > \ [ELSE]   
   > \ ....   
   > cr .( you should see this according to the standard)   
   > [THEN]   
   >   
   > (and the systems I tested actually comply with the standard requirements)   
   >   
   > This behaviour might surprise users, especially in connection with   
   > nested [IF]s.  However, there have been few complaints, so it   
   > obviously is only a minor issue.   
      
      
   This problem is not endemic to Forth. It takes place in many other   
   programming languages too.   
      
   For example, in "C++":   
      
      /*   
      
        // /* comment */ puts("you should see this");   
        // the above command takes effect despite the line comment   
      
      /* other comment */   
      
      
   A rule of thumb: the one who gains control first wins.   
      
      
   --   
   Ruvim   
      
   --- 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