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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f868292008c639ce X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: C vs. Ada - strings Date: 2000/05/05 Message-ID: <8euir4$qq6$1@nnrp1.deja.com>#1/1 X-Deja-AN: 619570587 References: <390F0D93.F835FAD9@ftw.rsc.raytheon.com> <87k8h9v1iy.fsf@deneb.cygnus.argh.org> X-Http-Proxy: 1.0 x43.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri May 05 13:37:42 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-05-05T00:00:00+00:00 List-Id: In article <87k8h9v1iy.fsf@deneb.cygnus.argh.org>, Florian Weimer wrote: > A direct Ada translation would be a bit more complicated > because you would have to keep track both of the start and the > end of the tokens. Why? there is nothing wrong with using a string terminator in an Ada context if that is convenient. Indeed you can take the C "string" facility, and map it into Ada in a pretty direct fashion if you like (the inclusion in the language of aliased and 'Access was motivated precisely by this kind of example!) Sent via Deja.com http://www.deja.com/ Before you buy.