comp.lang.ada
 help / color / mirror / Atom feed
From: Wes Groleau <groleau@freeshell.org>
Subject: Re: Mixed languages and frustration.
Date: Tue, 14 Oct 2003 23:32:12 -0500
Date: 2003-10-14T23:32:12-05:00	[thread overview]
Message-ID: <MdmdnWSSOsYsUBGiU-KYuQ@gbronline.com> (raw)
In-Reply-To: <RJ2jb.1440$7a4.792@newsread4.news.pas.earthlink.net>

Jeffrey Carter wrote:
> Wes Groleau wrote:
>>   If XYZ is an Ada access type, then
>>
>>   the C pointer to the heap object is  XYZ.all'Address
> 
> This will usually work, but is not guaranteed to. System.Address is a 
> private type because there are systems where an address doesn't map 
> neatly to an integer, as a C pointer must.

However, contrary to a popular belief among
Ada programmers, unchecked conversion from
access to address will usually NOT work on
most systems.

-- 
Wes Groleau
   "Grant me the serenity to accept those I cannot change;
    the courage to change the one I can;
    and the wisdom to know it's me."
                                -- unknown




  reply	other threads:[~2003-10-15  4:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-14 20:24 Mixed languages and frustration Freejack
2003-10-14 20:48 ` Robert I. Eachus
2003-10-14 20:53 ` sk
2003-10-14 21:53 ` Wes Groleau
2003-10-15  0:01   ` Freejack
2003-10-15  2:58   ` Jeffrey Carter
2003-10-15  4:32     ` Wes Groleau [this message]
2003-10-15  4:24 ` Steve
2003-10-15 15:50 ` Stephen Leake
2003-10-16  6:40   ` Ole-Hjalmar Kristensen
replies disabled

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