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.9 required=5.0 tests=BAYES_50,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!mitre.arpa!lazear From: lazear@MITRE.ARPA (Walt Lazear) Newsgroups: net.lang.ada Subject: Procedures as arguments Message-ID: <8510221405.AA27187@mitre.ARPA> Date: Tue, 22-Oct-85 10:04:26 EDT Article-I.D.: mitre.8510221405.AA27187 Posted: Tue Oct 22 10:04:26 1985 Date-Received: Wed, 23-Oct-85 23:59:10 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet List-Id: This may seem a naive question, since at first look it seems impossible: can I (in Ada) pass the name (address) of a procedure to another procedure to be executed by that called procedure? My goal is to have a general procedure that will call the supplied procedure until certain well-defined conditions occur, then return to the original caller. It is trivial to do in C, but I cannot find anything comparable in Ada. Thanks for any help. Walt (Lazear at MITRE.ARPA)