comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Re: System.Address to Access to function/procedure conversion
Date: Sun, 28 Jul 2013 14:31:00 -0700 (PDT)
Date: 2013-07-28T14:31:00-07:00	[thread overview]
Message-ID: <d5a38c54-bef7-440e-b6cc-c9938537aed7@googlegroups.com> (raw)
In-Reply-To: <kt3d9j$vmp$1@adenine.netfront.net>

> Given an Address of a function/procedure, how can you call it
> or convert the address to an access?

This article can be helpful:

http://www.inspirel.com/articles/Polymorphic_Callbacks_Ada_Cpp.html

The article goes even further than what you describe, as it shows polymorphic (object-oriented) callbacks, so in your case the actual solution might be one or two details simpler. In any case, it uses System.Address and standard Ada conversions to do the work.

-- 
Maciej Sobczak * http://www.msobczak.com * http://www.inspirel.com

  parent reply	other threads:[~2013-07-28 21:31 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-28 15:27 System.Address to Access to function/procedure conversion Tarek Ghaleb
2013-07-28 16:14 ` Dmitry A. Kazakov
2013-07-28 19:05   ` Tarek Ghaleb
2013-07-28 19:23     ` Simon Wright
2013-07-28 22:03       ` Tarek Ghaleb
2013-07-28 20:03     ` Dmitry A. Kazakov
2013-07-28 21:13     ` Shark8
2013-07-28 22:54       ` Tarek Ghaleb
2013-07-29  3:27         ` Shark8
2013-07-29  7:06           ` Tarek Ghaleb
2013-07-28 17:19 ` Jeffrey Carter
2013-07-28 19:05   ` Tarek Ghaleb
2013-07-28 20:04     ` Jeffrey Carter
2013-07-28 21:31 ` Maciej Sobczak [this message]
2013-07-29  6:26   ` Tarek Ghaleb
replies disabled

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