From: zweig@brutus.cs.uiuc.edu (Johnny Zweig)
Subject: Re: Passing Procedures as Parameters
Date: 20 Jul 89 02:07:54 GMT [thread overview]
Message-ID: <1989Jul20.020754.23515@brutus.cs.uiuc.edu> (raw)
In-Reply-To: 3286@wpi.wpi.edu
tfrancis@wpi.wpi.edu (Krishan M Nainani) writes:
>Hi,
> Does anyone know how to pass a procedure as a parameter in the
>formal parameter list in Ada ?
As far as I know, you can't.
>It can be easily done in Pascal whereas, in C,
>a pointer to the function (or "procedure") is passed. If it can be done what
>is the syntax ? Your help would be appreciated.
>Thanx in advance.
Really, you can do most of the things that you might be tempted to
accomplish via passing (pointers to) functions via generic instantiation,
rendezvous or using C or Pascal. I am told by wise people that it is not
a big shortcoming in Ada....
-Johnny Zweig
UIUC Dept. of Computer Science
#include <stddisclamier.h>
prev parent reply other threads:[~1989-07-20 2:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1989-07-18 0:18 Passing Procedures as Parameters Krishan M Nainani
1989-07-20 2:07 ` Johnny Zweig [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox