On May 14, 9:47=A0am, nos...@[EMAIL PROTECTED]
(Richard Maine) wrote:
> GaryScott <garylsc...@[EMAIL PROTECTED]
> wrote:
> > On May 14, 1:36 am, robert.corb...@[EMAIL PROTECTED]
wrote:
> > > On May 13, 8:05 pm, robert.corb...@[EMAIL PROTECTED]
wrote:
>
> > > > On May 13, 6:33 pm, nos...@[EMAIL PROTECTED]
(Richard Maine) wrote:
> > > > It does look as if I got it wrong. =A0Here is an example. =A0Given
> > > > the program
>
> > > > =A0 =A0 =A0 PROGRAM MAIN
> > > > =A0 =A0 =A0 =A0 OPEN (10, FILE=3D'XXX')
> > > > =A0 =A0 =A0 =A0 REWIND 10
> > > > =A0 =A0 =A0 =A0 WRITE (10, '(A)', ADVANCE=3D'NO') 'ABCDEF'
> > > > =A0 =A0 =A0 =A0 WRITE (10, '(T1, A)') 'GHI'
> > > > =A0 =A0 =A0 END
>
> > > When I compile and run the program with a handful of different
> > > compilers, ifort 8.0 appears to be the odd man out. =A0Do more
> > > recent versions of ifort still write
>
> > > GHIDEF
>
> > > to the file XXX? =A0 Do other implementations?
>
> > > Bob Corbett
>
> > CVF 6.6 produces GHIDEF also. =A0Removing the "T1," above produces
> > ABCDEFGHI.
>
> > So in the "correct" implentation, how do you produce GHIDEF in a
> > standard conforming way?
>
> You can't - not with advance=3D'no'. Sort of the whole point is that
when
> a write statement completes, the result might actually be physically
> writen. The standard doesn't require that, but it is purposefully
> designed to encourage, or at least allow, that. You can't undo what has
> been written. Or, in more memorable words than mine, yet very apt:
>
> =A0 The Moving Finger writes; and, having writ,
> =A0 Moves on: nor all your Piety nor Wit
> =A0 Shall lure it back to cancel half a Line,
> =A0 Nor all your Tears wash out a Word of it
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-- Omar
Kha=
yyam
>
> Even the "half a line" bit seems perfect.
Unfortunate. Even if the partial line had been flushed, I can't think
of any output device that can't achieve the desired result. If there
were one, it would be a rare case. One of my main desires for
advance=3Dno is to be able to overlay as CVF originally sup****ted,
although I've converted nearly everything to GUIs now, so this type of
processing is less im****tant for me.
>
> --
> Richard Maine =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| Good judgement
come=
s from experience;
> email: last name at domain . net | experience comes from bad judgement.
> domain: summertriangle =A0 =A0 =A0 =A0 =A0 | =A0-- Mark Twain- Hide
quoted=
text -
>
> - Show quoted text -


|