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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b9cfff6be15329d9,start X-Google-Attributes: gid103376,public From: schwarza@gdls.com (Art Schwarz) Subject: CallBack routines Date: 1996/06/07 Message-ID: <4p9o2o$jad@mill.gdls.com>#1/1 X-Deja-AN: 159074645 organization: General Dynamics, Land Systems Div reply-to: schwarza@gdls.com newsgroups: comp.lang.ada Date: 1996-06-07T00:00:00+00:00 List-Id: In Ada 83: I'm trying to fake (?), implement (?) the use of callback functions - unsuccessfully. The best seen here is a generic which allows the use of generic procedures. The generic procedures (within the generic template) is used as a 'callback'. Anything better around? For example what I'd like (a la C/C++): qsort(list, callbackfn) where the callbackfn returns the result of comparing two elements from the list. (Since this is an example, I've taken some liberties). art