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=3.0 required=5.0 tests=BAYES_40,INVALID_MSGID, TO_NO_BRKTS_PCNT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a44046be0e2c612d,start X-Google-Attributes: gid103376,public From: John O'Malley Subject: Multi-dimensional Array of Functions ? Date: 2000/05/04 Message-ID: <169b2ded.062ddfc5@usw-ex0109-068.remarq.com>#1/1 X-Deja-AN: 619528879 X-Originating-Host: 153.4.57.9 X-Complaints-To: wrenabuse@remarq.com X-Trace: WReNphoon4 957523806 10.0.2.68 (Fri, 05 May 2000 03:50:06 PDT) Organization: http://www.remarq.com: The World's Usenet/Discussions Start Here NNTP-Posting-Date: Fri, 05 May 2000 03:50:06 PDT X-Wren-Trace: eDofNzYvaCJpcCE6MTQ0PiklJjomHnI/cSMhOn0tLHd1bS9oei5hYWF1Zw== Newsgroups: comp.lang.ada Date: 2000-05-04T00:00:00+00:00 List-Id: I am a newbie to ada and I am looking for an example of an array of functions. The project I am currently working on has a procedure which is a gaint case statement with nested cases that make function calls. This procedure is unreadable and could easily be reduced by 99% by using a multidimensional array containing pointers to functions. I know how to create an array of pointers to functions in C and I was wondering if this is even possible in ada 83 or 95. If it is possible, do all the functions in the array have to be formatted the same (i.e same pass and return parameters)? Any help and/or examples would be appreciated. Thanks, John * Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is Beautiful