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 08:02:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!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 15:02:05 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: <1ec946d1.0304090942.3106b4e4@posting.google.com> <1ec946d1.0304100609.52b0fac0@posting.google.com> NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1049986925 6514 217.17.192.37 (10 Apr 2003 15:02:05 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Thu, 10 Apr 2003 15:02:05 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:36057 Date: 2003-04-10T15:02:05+00:00 List-Id: * Matthew Heaney wrote: > Lutz Donnerhacke wrote in message news:... >> * Matthew Heaney wrote: >> > 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. > > Doesn't Spark have a #hide clause, to turn off Spark checking? After > all, you're calling a C library function, so what difference does > Spark make? Right, but I'm looking for the Spark frontend of this hide clause. > You could simply pass type System.Address. Of course. I can pass any private type, but how do I initialize such a thing? > execv(filename, argv_array (argv_array'First)'Address); This call has to occur in normal Spark. argv_array has which type? array (Positive range <>) of System.Address? And the examinder says: *** Semantic Error : 54: Illegal attribute: Address. > Or you could use an access parameter: > > execv(filename, argv_array (argv_array'First)'Access); How do I do this in a Spark frontend? Of course, I can hide the whole program, but this is not really a solution.