Re: EOF as datum

2016-07-02 Thread Marko Rauhamaa
Pierre Lairez : > No, forget what I just wrote, this is obvious. Two mathematicians met in the university cafeteria. They exchanged hellos and started chatting. It turned out one of them had just prepared a paper and was about to send it out for peer review. He had a draft copy with him and the f

Re: EOF as datum

2016-07-02 Thread Pierre Lairez
No, forget what I just wrote, this is obvious. Pierre On 02/07/2016 04:39, Mark H Weaver wrote: > Hi, > > Pierre Lairez writes: > >> I understand why we cannot use (eof-object) in a “case” statement. For >> example, this will not run as it is meant: >> (case (get-char port) >> (((eof-object

Re: EOF as datum

2016-07-02 Thread Pierre Lairez
Hello Mark, Thanks for your answer, and I see your point concerning the non-readability of EOF. And by the way, this point is not so obvious, contrary to what the doc says: > > Macro: /SCM/ *SCM_EOF_VAL* > > The Scheme end-of-file value. It has no standard written > representation, for ob