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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,88e7ef9008757431 X-Google-Attributes: gid103376,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: Function Calls by Address Date: 1999/08/30 Message-ID: <1999Aug30.174805.1@eisner>#1/1 X-Deja-AN: 519051071 X-Nntp-Posting-Host: eisner.decus.org References: <37CADE68.6AF06F5D@escmail.orl.lmco.com> <37CAEA5C.11A23940@pwfl.com> <37CAEF6C.197AA467@pwfl.com> X-Trace: news.decus.org 936049688 9974 KILGALLEN [216.44.122.34] Organization: LJK Software Reply-To: Kilgallen@eisner.decus.org.nospam Newsgroups: comp.lang.ada Date: 1999-08-30T00:00:00+00:00 List-Id: In article <37CAEF6C.197AA467@pwfl.com>, Marin David Condic writes: > Marin David Condic wrote: > >> Craig Jameson wrote: >> >> > Does any one know how to make dynamic function calls in Ada83. > > Ooops! I just noticed that you said Ada83. There is no easy way to do this > in Ada83. > If you can get the 'Address to a subprogram and can figure out how to jump > to that address within the system you're in, it should be relatively easy to > dynamically build a list of the addresses you're interested in and jumping > to them. I thought the real problem described was X-windows callbacks, in which case the Ada program does not have to do the jumping, just supply the address. Typically one cannot deal with X-windows from Ada without a binding to the various X libraries, and those who wrote the binding will typically have worked out how to feed the X-windows system on the machine in question. For DEC Ada on VMS there are lots of lovely comments in the binding source that explain the scheme. Larry Kilgallen