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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.224.163.14 with SMTP id y14mr61870555qax.3.1375047061139; Sun, 28 Jul 2013 14:31:01 -0700 (PDT) X-Received: by 10.49.41.101 with SMTP id e5mr972712qel.7.1375047061122; Sun, 28 Jul 2013 14:31:01 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!cb17no212502qab.0!news-out.google.com!ce7ni0qab.0!nntp.google.com!cb17no288740qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 28 Jul 2013 14:31:00 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=188.146.89.233; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S NNTP-Posting-Host: 188.146.89.233 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: System.Address to Access to function/procedure conversion From: Maciej Sobczak Injection-Date: Sun, 28 Jul 2013 21:31:01 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:16590 Date: 2013-07-28T14:31:00-07:00 List-Id: > 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 polymorph= ic (object-oriented) callbacks, so in your case the actual solution might b= e one or two details simpler. In any case, it uses System.Address and stand= ard Ada conversions to do the work. --=20 Maciej Sobczak * http://www.msobczak.com * http://www.inspirel.com