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 08:00:18 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: conversion Date: 07 Jul 2003 10:55:08 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3EFCC18B.4040904@attbi.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1057589752 4294 128.183.235.92 (7 Jul 2003 14:55:52 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 7 Jul 2003 14:55:52 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: archiver1.google.com comp.lang.ada:40106 Date: 2003-07-07T14:55:52+00:00 List-Id: > Alexander Kopilovitch wrote: > : Georg Bauhaus 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! -- -- Stephe