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: dale@cs.rmit.edu.au (Dale Stanbrough) Subject: Re: Operating System in Ada (was Ada --> C Translation) Date: 1998/10/13 Message-ID: #1/1 X-Deja-AN: 400471672 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-Complaints-To: abuse@cs.rmit.edu.au X-Trace: emu.cs.rmit.edu.au 908246564 28969 144.205.16.58 (13 Oct 1998 02:42:44 GMT) Organization: Department of Computer Science, RMIT NNTP-Posting-Date: 13 Oct 1998 02:42:44 GMT Newsgroups: comp.lang.ada Date: 1998-10-13T02:42:44+00:00 List-Id: Chris Morgan wrote: "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?" Yes, the Ada string could have an Ascii.Nul at the end of it, so long as it never appeared in the array. However it still would be of no use to represent C style strings. For example... A : String (1..10); Last : Integer; Get_Line (A, Last); If Last is 5, then don't expect a \0 at position 6! (there may be one at position 11 however). Dale