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,463c5796782db6d8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-10 01:23:47 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.telebyte.nl!newsfeed.vmunix.org!news-FFM2.ecrc.net!news.iks-jena.de!not-for-mail From: Lutz Donnerhacke Newsgroups: comp.lang.ada Subject: Re: [Spark] Arrays of Strings Date: Thu, 10 Apr 2003 08:23:46 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: <1ec946d1.0304090942.3106b4e4@posting.google.com> NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1049963026 27775 217.17.192.37 (10 Apr 2003 08:23:46 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Thu, 10 Apr 2003 08:23:46 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:36041 Date: 2003-04-10T08:23:46+00:00 List-Id: * Matthew Heaney wrote: > Lutz Donnerhacke wrote in message news:... >> In order to implement thin an execve binding, I wonder how to emulate the >> C-Type "char const * const x []". Any bright ideas? > > Realize that an array in C "decays" to a pointer to the first element, > so x has the type > > const char* const* Known. > If you want to use the char* type in Interfaces.C.Strings, then your > problem reduces to: > > type chars_ptr_access is access constant C.Strings.chars_ptr; > for chars_ptr_access'Storage_Size use 0; > pragma Convention (C, chars_ptr_access); Ack. And Spark does not allow access types. So my question is still open.