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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,76da32d8c4934801 X-Google-Attributes: gid103376,public From: dewarr@my-dejanews.com Subject: Re: Operating System in Ada (was Ada --> C Translation) Date: 1998/10/14 Message-ID: <700s86$7vm$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 400789173 References: <6vobnk$vt9$1@jupiter.cs.uml.edu> <6vp23h$hc3$1@jupiter.cs.uml.edu> <1998Oct12.072036.1@eisner> <87d87xmdkn.fsf@mihalis.ix.netcom.com> X-Http-Proxy: 1.0 x13.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Wed Oct 14 00:45:57 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/2.02 (OS/2; I) Date: 1998-10-14T00:00:00+00:00 List-Id: In article <87d87xmdkn.fsf@mihalis.ix.netcom.com>, Chris Morgan wrote: > kilgallen@eisner.decus.org (Larry Kilgallen) writes: > > > The operating system that most people would think about copying first > > is Unix -- and that seems like a non-starter from its anti-Ada interfaces > > (null-terminated strings and the like). Yes it is possible to interact, > > but it is not in the "spirit" of Ada. > > I totally disagree with this. My view of Ada strings is that they are > a higher level construct than C style strings. I believe at least some > Ada implementations on top of Unix simply use many of the standard C > library's string functions under the hood. I may be wrong but isn't a > null-terminated string a valid representation of an Ada string? > > Chris It is conceivable, but it is certainly not a likely representation, since it does not handle the case of slices without copies. And in any case you need to store the lower bound, so why not the length as well. Robert Dewar -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own