Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!lll-winken!sun-barr!newstop!sun!chiba!khb From: khb%chiba@Sun.COM (Keith Bierman - SPD Advanced Languages) Newsgroups: comp.lang.fortran Subject: Re: Position in file after open? Message-ID: <126553@sun.Eng.Sun.COM> Date: 20 Oct 89 01:53:33 GMT References: <1162@atha.AthabascaU.CA> <50500152@uxe.cso.uiuc.edu> <126396@sun.Eng.Sun.COM> <1177@atha.AthabascaU.CA> Sender: news@sun.Eng.Sun.COM Reply-To: khb@sun.UUCP (Keith Bierman - SPD Advanced Languages) Organization: Sun Microsystems, Mountain View Lines: 37 In article <1177@atha.AthabascaU.CA> lyndon@cs.AthabascaU.CA (Lyndon Nerenberg) writes: >In article <126396@sun.Eng.Sun.COM> khb@sun.UUCP (Keith Bierman - SPD Advanced Languages) writes: >>As is moderately well known, this is a "feature" of the '77 standard. >>While it is "obvious" that a freshly opened file should be positioned >>at the start, there is a legend that at least one popular compiler >>positions to the end of file just to prove to customers how bad the >>standard is ... > >From IBM's _VS FORTRAN Application Programming: Language Reference_: > > "After a sucessful open ... the file is not repositioned > at the beginning" > >So much for legend :-) No the question of _why_ is addressed by the legend. > >The f77 compiler from the UNIX SVR3.1 porting base explicitly >positions The story is that Stu Feldman, author of the "portable unix f77" did this explicitly. Sensible vendors fix this. >type of behavior? One hopes not ... but where one does ... others are sure to follow. Anyone have other VS languages manuals handy ? Keith H. Bierman |*My thoughts are my own. !! kbierman@sun.com It's Not My Fault | MTS --Only my work belongs to Sun* I Voted for Bill & | Advanced Languages/Floating Point Group Opus | "When the going gets Weird .. the Weird turn PRO" "There is NO defense against the attack of the KILLER MICROS!" Eugene Brooks