From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!border1.nntp.hkg.giganews.com!news.netfront.net!not-for-mail From: Tarek Ghaleb Newsgroups: comp.lang.ada Subject: Re: System.Address to Access to function/procedure conversion Date: Mon, 29 Jul 2013 06:26:41 +0000 (UTC) Organization: Netfront http://www.netfront.net/ Message-ID: References: NNTP-Posting-Host: 77.247.181.162 X-Trace: adenine.netfront.net 1375079201 30421 77.247.181.162 (29 Jul 2013 06:26:41 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Mon, 29 Jul 2013 06:26:41 +0000 (UTC) User-Agent: slrn/1.0.1 (Linux) X-Original-Bytes: 1790 Xref: number.nntp.dca.giganews.com comp.lang.ada:182756 Date: 2013-07-29T06:26:41+00:00 List-Id: On 2013-07-28, Maciej Sobczak wrote: >> 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. Yes, the article is very relevant to what I'm doing. It's very interesting. Especially, that it's about callbacks and C++, which is exactly what I'm dealing with. Thanks for the link. Tarek. -- Rotten wood cannot be carved. -- Confucius, "Analects", Book 5, Ch. 9 --- news://freenews.netfront.net/ - complaints: news@netfront.net ---