comp.lang.ada
 help / color / mirror / Atom feed
From: "Alex R. Mosteo" <devnull@mailinator.com>
Subject: Re: Interfacing to C and void*
Date: Tue, 21 Feb 2006 09:09:25 +0100
Date: 2006-02-21T09:09:25+01:00	[thread overview]
Message-ID: <43FACAB5.9010303@mailinator.com> (raw)
In-Reply-To: <dtd60j$9i1$1@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com>

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.



  reply	other threads:[~2006-02-21  8:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-20 15:19 Interfacing to C and void* Maciej Sobczak
2006-02-20 18:24 ` Georg Bauhaus
2006-02-20 18:54   ` Jeffrey R. Carter
2006-02-20 19:01 ` Martin Krischik
2006-02-20 19:41   ` Martin Dowie
2006-02-21  8:09     ` Alex R. Mosteo [this message]
2006-02-21 18:47     ` Martin Krischik
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox