Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!haven!purdue!gatech!psuvax1!news From: schwartz@shire.cs.psu.edu (Scott Schwartz) Newsgroups: comp.lang.pascal Subject: Re: file windows (was Re: Standard Pascal) Message-ID: Date: 25 Jul 89 00:25:35 GMT References: <8616@pyr.gatech.EDU> <18965@paris.ics.uci.edu> <4623@freja.diku.dk> Sender: news@psuvax1.cs.psu.edu Organization: Pennsylvania State University, computer science Lines: 18 In article <4623@freja.diku.dk> Kristian Damm Jensen writes: | >| > while (input^ in [space, tab, newline, cr, formfeed]) do | >| > get (input) | BTW it is the file-window that allows you to check eoln and eof. How do you | manage to check that, if you don't have some kind of look-ahead? Well, actually the above should have been written as while (not eof (input)) and (input^ in [...]) do get (input) since eof and eoln are "out of band" conditions that can't necessarily be detected just by looking at input^. -- Scott Schwartz