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,498 of 117,927   
   Anton Ertl to dxf   
   Re: READ-LINE when u1=0   
   26 Jul 25 10:41:26   
   
   From: anton@mips.complang.tuwien.ac.at   
      
   dxf  writes:   
   >ANS seems pedantic on EOF returning both u2=0 and   
   >flag=0.  The TC reiterated this in response to an RFI.  But why?  Who   
   >checks u2 for EOF?   
      
   Reporting EOF only when the input has been exhausted before READ-LINE   
   means that there is no special handling needed for the last line   
   (assuming you want to process it the same way as the other lines).   
      
   >Omitted from the ANS spec is any mention of EOF characters for systems   
   >that employ it e.g. CP/M and MS-DOS.   
      
   That's in line with the way that the standard deals with different   
   newline representations: It does not mention them in the normative   
   part, exactly because they are different and therefore problematic to   
   standardize.   
      
   For EOF it's the same.  There's a way to report EOF no matter how EOF   
   is represented in the OS, but no standard way to find out anything   
   about the representation.   
      
   >And if READ-LINE encounters such   
   >there should be a way to report it.   
      
   If you think that the existing EOF handling is insufficient, make a   
   proposal.  And make a good case why you consider the existing EOF   
   handling insufficient.   It has been sufficient for me up to now.   
      
   - 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   
      
   --- 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