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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7050446df2bdd3ac X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Interfacing to C and void* Date: Tue, 21 Feb 2006 09:09:25 +0100 Message-ID: <43FACAB5.9010303@mailinator.com> References: <1324118.dmjBZp3eKX@linux1.krischik.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net B82dZp7LMcMUSUiMvHir6Q/xRVE//fjRhg/f7ficx33S3xmc4= User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:3034 Date: 2006-02-21T09:09:25+01:00 List-Id: Martin Dowie wrote: > Martin Krischik wrote: > >> http://en.wikibooks.org/wiki/Ada_Programming/Memory#Where_is_void.2A.3F > > > I would have thought a null record would be a nicer method of declaring > a void and then an access of that for "void *", e.g. > > type Void is null record; > pragma Convention (C, Void); > > type Void_Ptr is access all Void; > pragma Convention (C, Void_Ptr); > > No? Seconded here.