From: sjw <simon.j.wright@mac.com>
Subject: Re: Gem 39 - compiler specific?
Date: Fri, 4 Sep 2009 15:41:43 -0700 (PDT)
Date: 2009-09-04T15:41:43-07:00 [thread overview]
Message-ID: <a22cad6d-3422-4d36-952d-5479e6f4d72b@l9g2000yqi.googlegroups.com> (raw)
In-Reply-To: dded24f9-f083-4fcc-b0f9-a76554055fca@37g2000yqm.googlegroups.com
On Sep 4, 1:07 pm, Maciej Sobczak <see.my.homep...@gmail.com> wrote:
> I have done it very recently and I used
> System.Address_To_Access_Conversions. The access values to genuine Ada
> objects (even of class-wide types) are converted to addresses and
> handed to the C++ component, which at some later point in time calls
> back into Ada providing the previously stored address that Ada
> converts to the original access value.
>
> A very important part of this business is that the C++ component
> *never* uses the given address in any other way than to remember it.
> It is just a "cookie".
Then I don't quite see why you needed to convert at all?
procedure P (Q : Fancy_Access);
pragma Import (C, Q);
Or is it that the size of a Fancy_Access makes it hard to represent on
the C side?
next prev parent reply other threads:[~2009-09-04 22:41 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-02 20:38 Gem 39 - compiler specific? Maciej Sobczak
2009-09-02 23:20 ` Randy Brukardt
2009-09-03 7:26 ` Dmitry A. Kazakov
2009-09-03 15:26 ` Adam Beneschan
2009-09-03 16:38 ` Dmitry A. Kazakov
2009-09-03 17:27 ` Adam Beneschan
2009-09-03 20:26 ` Dmitry A. Kazakov
2009-09-03 22:06 ` Randy Brukardt
2009-09-04 7:29 ` Dmitry A. Kazakov
2009-09-04 12:07 ` Maciej Sobczak
2009-09-04 13:06 ` Dmitry A. Kazakov
2009-09-04 17:18 ` Dmitry A. Kazakov
2009-09-04 20:34 ` Maciej Sobczak
2009-09-04 22:41 ` sjw [this message]
2009-09-05 20:45 ` Maciej Sobczak
2009-09-06 6:54 ` sjw
2009-09-03 21:58 ` Randy Brukardt
2009-09-04 17:26 ` Robert A Duff
2009-09-03 21:53 ` Randy Brukardt
2009-09-03 0:12 ` Adam Beneschan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox