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,38c827f7e800d317 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-07 14:36:52 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: aek@vib.usr.pu.ru (Alexander Kopilovitch) Newsgroups: comp.lang.ada Subject: Re: conversion Date: 7 Jul 2003 14:36:51 -0700 Organization: http://groups.google.com/ Message-ID: References: <3EFCC18B.4040904@attbi.com> NNTP-Posting-Host: 62.152.82.175 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1057613812 7049 127.0.0.1 (7 Jul 2003 21:36:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 7 Jul 2003 21:36:52 GMT Xref: archiver1.google.com comp.lang.ada:40118 Date: 2003-07-07T21:36:52+00:00 List-Id: Stephen Leake wrote: >> :> > The varying strings of unspecified maximum size are common for >> :> > many applications outside of current, quite restricted Ada >> :> > world. And arrays of such strings are no less common. >> :> >> :>Care to list some examples? >> : >> : /* C/C++ example */ >> : >> : char *Titles[] = { >> : "Quizionary", >> : "Nose To Nose", >> : "Myself", >> : "General Dissent", >> : "Veteran's Opinion", >> : "Corporate Science Weekly", >> : "Truth, Wealth, Health", >> : "Bribery Times" >> : }; > >These are _not_ "varying strings of unspecified length"! > >These are all _constant_ strings, whose length is determined from the >initializer. The compiler should put them in the "constant" section, >so you can't even treat them as ordinary C null-terminated variable >strings; you can't write to them! "varying" always is relative to some account of time, right? Well, I meant more "lifetime" than "run-time" of a program. Alexander Kopilovitch aek@vib.usr.pu.ru Saint-Petersburg Russia