From: Martin Krischik <martin@krischik.com>
Subject: Re: Wiki on Ada
Date: Tue, 09 Nov 2004 09:45:41 +0100
Date: 2004-11-09T09:45:41+01:00 [thread overview]
Message-ID: <3659139.ALV7q0jNnn@linux1.krischik.com> (raw)
In-Reply-To: QkPjd.8841$O11.5526@newsread3.news.pas.earthlink.net
Jeffrey Carter wrote:
> Martin Krischik wrote:
>
>> Yes, that's the one. But Matthew relies on the existence of a final
>> CR/LF - either physicly in the file or logicly provided by the particular
>> Ada implementation - Only GNAT does not provide one. And that means you
>> have to handle the End_Of_File exception as well.
>
> Of course, CR/LF is unique to DOS/Windows. Randy thinks this is a
> compiler error, since the ARM requires logical line and page terminators
> at the end of file. Both GNAT and ObjectAda V7.2.2 SE have this problem;
> Randy says that Janus Ada does not.
>
> Note that PragmARC.Get_Line has been in use since 1991, and there have
> been no reports of this problem being encountered in actual use.
Well I don't think that anybody else has send a few thouthent C++ source
files thru Get_Line.
As you might know: The main part of AdaCL is a text filter framework. Mainly
used for C++ source-file refactoring. When it comes to string handling and
Text_IO I have seen it all - event he most esoteric bugs.
I used the AdaCL text filters for more the a month before I noticed the
first file which did not have a last line any more. The bug is indeed very
sparce - bit it did happen in actual use.
So
With Regards
Martin
--
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com
next prev parent reply other threads:[~2004-11-09 8:45 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-06 10:48 Wiki on Ada Martin Krischik
2004-11-07 3:35 ` Steve
2004-11-07 3:49 ` Ed Falis
2004-11-07 9:01 ` Martin Krischik
2004-11-07 8:40 ` Martin Krischik
2004-11-07 13:08 ` David Botton
2004-11-07 13:53 ` Martin Krischik
2004-11-07 20:29 ` David Botton
2004-11-07 21:44 ` David Botton
2004-11-08 8:46 ` Martin Krischik
2004-11-08 11:55 ` David Botton
2004-11-08 18:57 ` Jeffrey Carter
2004-11-09 8:45 ` Martin Krischik [this message]
2004-11-07 16:57 ` Björn Persson
2004-11-07 17:26 ` Martin Krischik
2004-11-15 7:34 ` Preben Randhol
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox