comp.lang.ada
 help / color / mirror / Atom feed
From: Francois Godme <fgodme@magic.fr>
Subject: Re: Function Calls by Address
Date: 1999/09/03
Date: 1999-09-03T00:00:00+00:00	[thread overview]
Message-ID: <37CFFEA6.921CBE59@magic.fr> (raw)
In-Reply-To: 7qooh7$hbh$1@nnrp1.deja.com

Robert Dewar wrote:

> In article <37CEEFFA.7D73F78D@magic.fr>,
>   Francois Godme <fgodme@magic.fr> 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





  reply	other threads:[~1999-09-03  0:00 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-30  0:00 Function Calls by Address Craig Jameson
1999-08-30  0:00 ` Marin David Condic
1999-08-30  0:00   ` Marin David Condic
1999-08-30  0:00     ` Larry Kilgallen
1999-08-30  0:00   ` Robert Dewar
1999-08-30  0:00 ` Robert Dewar
1999-08-31  0:00   ` Martin Gangkofer
1999-08-30  0:00 ` Robert Dewar
1999-08-31  0:00 ` Matthew Heaney
1999-08-31  0:00 ` David Kristola
1999-09-01  0:00 ` Simon Wright
1999-09-02  0:00 ` Francois Godme
1999-09-03  0:00   ` Robert Dewar
1999-09-03  0:00     ` Francois Godme [this message]
1999-09-03  0:00       ` David C. Hoos, Sr.
1999-09-04  0:00         ` Robert Dewar
1999-09-05  0:00           ` Francois Godme
1999-09-06  0:00             ` Robert Dewar
1999-09-06  0:00               ` Francois Godme
1999-09-06  0:00                 ` Robert Dewar
1999-09-06  0:00                 ` Robert Dewar
1999-09-06  0:00                   ` Bob Collins
1999-09-07  0:00                     ` Pascal Obry
1999-09-07  0:00                 ` Pascal Obry
1999-09-07  0:00                   ` Francois Godme
1999-09-08  0:00                   ` Francois Godme
1999-09-03  0:00       ` Marin David Condic
1999-09-14  0:00         ` Robert I. Eachus
     [not found]           ` <wcc3dwgb7ii.fsf@world.std.com>
     [not found]             ` <37E81079.CC2566D9@mitre.org>
1999-09-22  0:00               ` Robert A Duff
1999-09-22  0:00                 ` Robert I. Eachus
1999-09-23  0:00                 ` Robert Dewar
1999-09-23  0:00                   ` Robert A Duff
1999-09-03  0:00       ` Robert Dewar
1999-09-03  0:00         ` Ted Dennison
1999-09-04  0:00           ` Jean-Pierre Rosen
1999-09-05  0:00             ` Matthew Heaney
1999-09-05  0:00             ` Ehud Lamm
1999-09-04  0:00         ` Brian Rogoff
1999-09-05  0:00           ` Robert Dewar
1999-09-05  0:00           ` Robert Dewar
1999-09-05  0:00           ` Robert Dewar
1999-09-03  0:00       ` Simon Wright
1999-09-04  0:00       ` Mario Klebsch
1999-09-05  0:00         ` Robert Dewar
1999-09-06  0:00           ` Francois Godme
1999-09-05  0:00             ` Brian Rogoff
1999-09-06  0:00             ` Robert Dewar
1999-09-08  0:00               ` Georg Bauhaus
1999-09-05  0:00       ` Geoff Bull
1999-09-07  0:00       ` Michael F. Yoder
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox