comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Dowie <martin.dowie@btopenworld.com>
Subject: Re: Interfacing to C and void*
Date: Mon, 20 Feb 2006 19:41:07 +0000 (UTC)
Date: 2006-02-20T19:41:07+00:00	[thread overview]
Message-ID: <dtd60j$9i1$1@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com> (raw)
In-Reply-To: <1324118.dmjBZp3eKX@linux1.krischik.com>

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?

Cheers

-- Martin




  reply	other threads:[~2006-02-20 19:41 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 [this message]
2006-02-21  8:09     ` Alex R. Mosteo
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