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,751 of 117,927   
   dxf to Paul Rubin   
   Re: Idiomatic way to read a word of text   
   21 Nov 25 13:33:51   
   
   From: dxforth@gmail.com   
      
   On 21/11/2025 9:53 am, Paul Rubin wrote:   
   > dxf  writes:   
   >> When you say 'get around it', do you mean a broken line?   
   >   
   > The trouble distinguishing between a broken and an unbroken line when   
   > u1=line length.  I think for roff though, it's ok to abandon the wish to   
   > handle arbitrarily long lines.  The deficiency in the standard is not   
   > explaining READ-LINE's exact behaviour in this situation.  I was able to   
   > experimentally resolve the issue in gforth, but other Forths might vary.   
      
   My sense is anyone who uses REAL-LINE (or its equivalent in other langs) is   
   doing so on the basis that the line read is complete i.e. arbitrarily long   
   lines are not considered - and if one must - then use some other strategy.   
      
   > I had for a while liked the idea of running the entire input document   
   > through the text interpreter (wordlists or some other scheme would stop   
   > non-formatting-commands from being looked up as Forth words).  But I   
   > later mostly lost interest in that.   
   >   
   > I guess in the text interpreter, the interpreter is at the beginning of   
   > a line iff IN> @ gives 0, and maybe Roff could use that.   
      
   I seem to have enough tools and incentives to not use the text interpreter.   
   OTOH if it's there and doesn't get in the way, I can understand why people do.   
      
   --- 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