comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Interfacing to C and void*
Date: Tue, 21 Feb 2006 19:47:56 +0100
Date: 2006-02-21T19:47:56+01:00	[thread overview]
Message-ID: <1222093.cUHToOjKuZ@linux1.krischik.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);
 
It's Wiki - anybody can edit and add additional examples. In fact: we
welcome other views and examples. so more so merrier. That way the reader
can learn about all the alternatives available.

Martin

-- 
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com



      parent reply	other threads:[~2006-02-21 18:47 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
2006-02-21 18:47     ` Martin Krischik [this message]
replies disabled

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