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.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!zweig From: zweig@brutus.cs.uiuc.edu (Johnny Zweig) Newsgroups: comp.lang.ada Subject: Re: Passing Procedures as Parameters Message-ID: <1989Jul20.020754.23515@brutus.cs.uiuc.edu> Date: 20 Jul 89 02:07:54 GMT References: <3286@wpi.wpi.edu> Sender: news@brutus.cs.uiuc.edu Distribution: usa Organization: U of Illinois, CS Dept., Systems Research Group List-Id: 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