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/16 Message-ID: #1/1 X-Deja-AN: 248928269 References: <5nrq5h$13cm@info4.rus.uni-stuttgart.de> <5o39sm$2fl6@info4.rus.uni-stuttgart.de> <33A5B0B3.7EA663D3@link.com> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 1997-06-16T00:00:00+00:00 List-Id: In article <33A5B0B3.7EA663D3@link.com>, Samuel Mize wrote: >I would agree EXCEPT -- dlsym is returning an address at run time, >so you can't use pragma Import. You still have the problem, how >do you call this address from Ada? True, but you can use pragma Convention(C) on the access-to-function type. Anyway, the caller needs to know what arguments to pass, so it's expecting some particular argument profile. So the caller, at least, ought to know what to do. - Bob