From: Peter Amey <pna@erlang.praxis.co.uk>
Subject: Re: End_Of_Line, End_Of_File
Date: 1996/12/02
Date: 1996-12-02T00:00:00+00:00 [thread overview]
Message-ID: <Pine.SUN.3.91.961202153911.10747C-100000-100000-100000@erlang.praxis.co.uk> (raw)
In-Reply-To: Pine.SUN.3.95.961130130247.261C-100000@tsc1
> The problem is I do not know how to recognize when there is an End_Of_Line
> followed by an End_Of_File or when there is and End_Of_File alone. The
> problem seems to be that in Ada95 (I'm using gnat-3.01 compiler on a Unix
> workstation) when End_Of_File returns true, End_Of_Line also returns true
> and that need not be true. For example:
You might like to know that this isn't Ada95 specific: the text_io
supplied with Ada83 compilers from Alsys and DEC behave differently
on the example you give and give a different count of the number of lines
in a file if if has blank lines before the end of file. The VAX compiler
sees these empty lines but the Alsys does not.
Peter
next prev parent reply other threads:[~1996-12-02 0:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-30 0:00 End_Of_Line, End_Of_File Fernando Tricas
1996-11-30 0:00 ` Robert Dewar
1996-12-02 0:00 ` Fernando Tricas
1996-12-02 0:00 ` Robert Dewar
1996-12-10 0:00 ` Robert I. Eachus
1996-12-02 0:00 ` Peter Amey [this message]
1996-12-02 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox