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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,794c64d1f9164710 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-21 18:47:52 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!207.217.77.43.MISMATCH!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3C75B14D.353DC69@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: functions, packages & characters References: <20020221130715.12738.00000034@mb-bg.aol.com> <3C753C66.8020509@mail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 22 Feb 2002 02:47:51 GMT NNTP-Posting-Host: 209.86.209.54 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 1014346071 209.86.209.54 (Thu, 21 Feb 2002 18:47:51 PST) NNTP-Posting-Date: Thu, 21 Feb 2002 18:47:51 PST Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Thu, 21 Feb 2002 18:47:51 PST (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:20243 Date: 2002-02-22T02:47:51+00:00 List-Id: Randy Brukardt wrote: > > you can't use Get_Line because you can't tell between the case of > a line which exactly fills the buffer and a line which is too long and > does not -- but in the former case, the line terminator is skipped). This is a curious statement to be coming from the Keeper of Ada-Auth and developer of Janus Ada. Get_Line does not skit the line terminator if the string is completely filled. A.10.7 says Get_Line Reads successive characters from the specified input file and assigns them to successive characters of the specified string. Reading stops if the end of the string is met. Reading also stops if the end of the line is met before meeting the end of the string; in this case Skip_Line is (in effect) called with a spacing of 1. The values of characters not assigned are not specified. Any implementation that skips the line terminator when the string is completely filled is clearly incorrect. WWJD? (What Would Janus Do?) -- Jeff Carter "You cheesy lot of second-hand electric donkey-bottom biters." Monty Python & the Holy Grail