[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #\EOF



What's the point?

TYI is defined to return -1 at EOF.  This is part of the language, it
is not an operating system dependency and should not be expected to
vary across systems.  (In fact, ITS returns 777777000003 at EOF, not -1).

Furthermore, TYI is the only function that returns -1 at EOF.  READ
and READLINE take an argument which is what to return (and it doesn't
default to -1!) and IN doesn't return anything, but gives an error.