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,951 messages   

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

   Message 117,754 of 117,951   
   Anton Ertl to Anton Ertl   
   Re: Idiomatic way to read a word of text   
   21 Nov 25 08:59:29   
   
   From: anton@mips.complang.tuwien.ac.at   
      
   anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:   
   >The behaviour is specified exactly:   
   >   
   >|If a line terminator was received before u1 characters were read, then   
   >|u2 is the number of characters, not including the line terminator,   
   >|actually read [...]. When u1 = u2 the line terminator has   
   >|yet to be reached.   
   >   
   >So the first sentence tells you what happens if line lenght < u1.  And   
   >the second sentence tells you what happens if line length >= u1.   
   >   
   >The deficiency in the standard is in the part that I elided: It says:   
   >(u<=i2<=u1).  It does not really contradict that text, but it has   
   >misled a number of people (including you) into thinking that the first   
   >sentence also includes line length = u1.  And the many questions about   
   >this issue show this deficiency.   
      
   BTW, this has all been spelled out in   
      
      
      
   - 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 2025 CFP: http://www.euroforth.org/ef25/cfp.html   
   EuroForth 2025 registration: https://euro.theforth.net/   
      
   --- 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