From: anton@mips.complang.tuwien.ac.at   
      
   Paul Rubin writes:   
   >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.   
      
   There is no such trouble in standard systems. Such a line will be   
   broken on such a system.   
      
   >The deficiency in the standard is not   
   >explaining READ-LINE's exact behaviour in this situation.   
      
   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.   
      
   - 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)   
|