From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: Representation question (void *)
Date: 1999/11/17
Date: 1999-11-17T00:00:00+00:00 [thread overview]
Message-ID: <80v669$f26$1@nnrp1.deja.com> (raw)
In-Reply-To: 7E47A2C771ADD211AD3C00A0C960172D01269B57@ISCPORTSEX
In article
<7E47A2C771ADD211AD3C00A0C960172D01269B57@ISCPORTSEX>,
comp.lang.ada@ada.eu.org wrote:
> How would one represent the following C declaration in Ada 95?
>
> void *data;
Usually the best representation is System.Address. Then to
actually use the value on the Ada side, you need to do an
(unchecked) conversion to the appropriate access type, using
Address_To_Access_Conversions. This conversion is of course
type unsafe, but void pointers are fundamentally unsafe!
Sent via Deja.com http://www.deja.com/
Before you buy.
prev parent reply other threads:[~1999-11-17 0:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-16 0:00 Representation question (void *) Lipscomb, Kevin
1999-11-16 0:00 ` Keith Thompson
1999-11-17 0:00 ` tmoran
1999-11-16 0:00 ` David C. Hoos, Sr.
1999-11-17 0:00 ` Ehud Lamm
1999-11-17 0:00 ` Matthew Heaney
1999-11-17 0:00 ` Robert Dewar [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