From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b9e1cb4c8c3d0d7f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Wiki on Ada Date: Tue, 09 Nov 2004 09:45:41 +0100 Organization: None Message-ID: <3659139.ALV7q0jNnn@linux1.krischik.com> References: <2004110715293516807%david@bottoncom> <2004110716441216807%david@bottoncom> <4470609.xob1brObga@linux1.krischik.com> Reply-To: martin@krischik.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1099990597 03 31062 NI7xXcYJ0jhqBYF 041109 08:56:37 X-Complaints-To: usenet-abuse@t-online.de X-ID: bi3grvZp8eqlkZs4j9KO0et0Ptjx0pRcNYH7N0eqq0BS0xPfnDj6oB User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:6074 Date: 2004-11-09T09:45:41+01:00 List-Id: 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