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,49f7dd1bad1910ff X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-14 13:19:54 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread4.news.pas.earthlink.net.POSTED!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Problems with Ada.Text_IO and strings. References: <8336eb21.0310131423.7410e1ec@posting.google.com> <8336eb21.0310140439.393f2e8@posting.google.com> In-Reply-To: <8336eb21.0310140439.393f2e8@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Tue, 14 Oct 2003 20:19:53 GMT NNTP-Posting-Host: 63.184.17.192 X-Complaints-To: abuse@earthlink.net X-Trace: newsread4.news.pas.earthlink.net 1066162793 63.184.17.192 (Tue, 14 Oct 2003 13:19:53 PDT) NNTP-Posting-Date: Tue, 14 Oct 2003 13:19:53 PDT Xref: archiver1.google.com comp.lang.ada:853 Date: 2003-10-14T20:19:53+00:00 List-Id: Bleakcabal wrote: > It would have been great if Ada strings read the end of line character > and Put took care of them so the lines were automagicly sliced like C > strings. IIRC, C doesn't treat arrays of charany differently than any other array. There is, however, a large library in C that treats a NUL in an array of char as an EOS character. Ada and C take 2 different, but consistent and workable, approaches to strings. You can certainly write a library in Ada to deal with strings the way C does. But this higher level of abstraction already exists in Ada as Ada.Strings.[Un]Bounded. -- Jeff Carter "Death awaits you all, with nasty, big, pointy teeth!" Monty Python & the Holy Grail 20