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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bbbeae4ed07e9626 X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: Address to function pointer conversion Date: 1997/06/14 Message-ID: #1/1 X-Deja-AN: 248435157 References: <5nrq5h$13cm@info4.rus.uni-stuttgart.de> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 1997-06-14T00:00:00+00:00 List-Id: In article <5nrq5h$13cm@info4.rus.uni-stuttgart.de>, Michael Paus wrote: >I just stumbled over a little problem. I have a system address and I would >like to >convert it to an access to function type. How can this be done correctly? >There is >a generic package System.Address_To_Access_Conversions ... It doesn't work for access-to-subprograms. Where does this address come from? It might make sense to instead use an access-to-subp from the start, and apply pragma Convention(C) to the type, thus telling the compiler "represent this like the C compiler". - Bob