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,88e7ef9008757431 X-Google-Attributes: gid103376,public From: Francois Godme Subject: Re: Function Calls by Address Date: 1999/09/03 Message-ID: <37CFFEA6.921CBE59@magic.fr>#1/1 X-Deja-AN: 520698417 Content-Transfer-Encoding: 7bit References: <37CADE68.6AF06F5D@escmail.orl.lmco.com> <37CEEFFA.7D73F78D@magic.fr> <7qooh7$hbh$1@nnrp1.deja.com> X-Client: Magic On Line [unknown@ppp-174.net3.magic.fr] X-Accept-Language: fr Content-Type: text/plain; charset=us-ascii Organization: very little Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-09-03T00:00:00+00:00 List-Id: Robert Dewar wrote: > In article <37CEEFFA.7D73F78D@magic.fr>, > Francois Godme wrote: > > > Loop around a small C language stub that calls a function > > passed from Ada. > > > > Easy, next one :) > > > > Francois Godme > > Not so fast! I assume you mean to use 'Address here. This may > work on some implementations, but there is no guarantee that > it will work, and it definitely will NOT work on some > implementations where the Address of a procedure is not a > full context, and it typically will NOT work for nested > procedures with uplevel references. > > Sent via Deja.com http://www.deja.com/ > Share what you know. Learn what you don't. Yes, it will not work everywhere and not for nested procedures. I knew about the nested procedures restriction but thought that no one still uses nested procedures. Personally, I have stopped using them. Why will I hide a perfectly useful procedure inside another when all I want is to spare me rewriting over and over the same thing. Are nested procedures coming from the Pascal heritage where everything was residing inside the main program? By the same matter, who is still using the 'separate' construct for writing new applications? Francois Godme