From: Tim Hunter Date: 2002-07-09T04:04:37+09:00 Subject: Re: How to determine EOF with sysread? On Mon, 08 Jul 2002 14:58:13 GMT, Ned Konz wrote: (snip) >So it's no accident that Ruby, Smalltalk, C++, and Java (I don't know >about the specifics of exception handling in CLU, Ada, or PL/I) ended >up with essentially the same exception model (except, of course, that >most Smalltalks allow resumption as well as termination). (snip) I haven't messed with PL/I in over 18 years, but my memory is that EOF is handled by an "on unit," a special statement label that is branched to when certain conditions occur. The syntax is something like: ON EOF MYFILE DO; /* whatever */ END; Looks like an exception to me.