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,45b47ecb995e7a3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-16 18:25:09 PST Path: archiver1.google.com!news2.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Ada Idioms Progress Preview Date: 16 Aug 2001 18:25:08 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0108161725.5f19fc8d@posting.google.com> References: <3B6F1B2F.4FC3C833@gsde.hou.us.ray.com> <5ee5b646.0108071819.6e84e33d@posting.google.com> <3_Xc7.45$NM5.84779@news.pacbell.net> <3B783712.88029BB8@worldnet.att.net> NNTP-Posting-Host: 205.232.38.244 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 998011509 1400 127.0.0.1 (17 Aug 2001 01:25:09 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 17 Aug 2001 01:25:09 GMT Xref: archiver1.google.com comp.lang.ada:12025 Date: 2001-08-17T01:25:09+00:00 List-Id: "Jay Nabonne" wrote in message news:... > "James Rogers" wrote in message > news:3B783712.88029BB8@worldnet.att.net... > > Ole-Hjalmar Kristensen wrote: > > > > > > One thing which can be said in favour of having a terminator character > > > is that it frees you from having to store the length explicitly. Note that there is very little in the C core language that mandates null-terminated strings (literals have a null character after them and that's it). Really this convention is embodied in the library routines, and of course it would be trivial to write a similar set of routines in Ada for Ada use, and indeed even simpler, you can just write a simple set of pragma import's and call the C routines directly.