comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam@spam.com>
Subject: Re: address/access/pointer confusion
Date: Fri, 22 Oct 2004 01:14:11 GMT
Date: 2004-10-22T01:14:11+00:00	[thread overview]
Message-ID: <D9Zdd.3774$KJ6.23@newsread1.news.pas.earthlink.net> (raw)
In-Reply-To: <rlsk6tkcyuz.fsf@jacob.crs4.it>

Jacob Sparre Andersen wrote:

> Not quite.  I think (Ada) System.Address specifically corresponds to a
> (C) void pointer, since System.Address doesn't have a specific type
> associated with it, and thus doesn't have the "increment by the size
> of the object pointed to" function that non-void pointers have.

The Ada equivalent of a C pointer is an access type with convention C. 
For void pointers, I typically use

type Void_Ptr is access all Integer; -- Target doesn't matter
pragma Convention (C, Void_Pointer);

-- 
Jeff Carter
"You cheesy lot of second-hand electric donkey-bottom biters."
Monty Python & the Holy Grail
14




      reply	other threads:[~2004-10-22  1:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-20 13:56 address/access/pointer confusion Hans Van den Eynden
2004-10-20 16:55 ` Martin Krischik
2004-10-20 18:51 ` skidmarks
2004-10-20 23:37   ` Georg Bauhaus
2004-10-21  7:30   ` Jacob Sparre Andersen
2004-10-22  1:14     ` Jeffrey Carter [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