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,773 of 117,927   
   albert@spenarnc.xs4all.nl to John   
   Re: Idiomatic way to read a word of text   
   25 Nov 25 12:59:47   
   
   In article <20251124190115.f6256c9bdaacb9ac4603a4ea@127.0.0.1>,   
   Kerr-Mudd, John  wrote:   
   >On Wed, 19 Nov 2025 11:22:08 +0100   
   >albert@spenarnc.xs4all.nl wrote:   
   >   
   >> In article <87o6oyrc7i.fsf@nightsong.com>,   
   >> Paul Rubin   wrote:   
   >>   
   >> The ciforth approach is more sensible. The terminal input buffer is   
   >> filled from the input stream. It is large say 16K.   
   >> Now you carve lines out of the buffer, and use a parse pointer,   
   >> maybe >IN. As soon as you find that there are no more line endings   
   >> in the remaining buffer, you copy the remainder to the start of   
   >> the buffer and fill the buffer to the brim.   
   >> In this case you will not copy more than is necessary.   
   >>   
   >A good approach, IMHO.   
   >But how do you deal with the case where there's no line ending at EoF?   
   >ISTM an additional action is required for the last line.   
      
   There is an action at EoF regardless.   
      
   >   
   >--   
   >Bah, and indeed Humbug.   
   --   
   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