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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fb43c0ab08a05c0,start X-Google-Attributes: gid103376,public From: "W. Wesley Groleau (Wes)" Subject: Ada 83 Style Query Date: 1996/05/06 Message-ID: <9605061517.AA05599@most>#1/1 X-Deja-AN: 153296784 sender: Ada programming language comments: Gated by NETNEWS@AUVM.AMERICAN.EDU mailer: Elm [revision: 70.85] newsgroups: comp.lang.ada Date: 1996-05-06T00:00:00+00:00 List-Id: I'm working on some old code that has a long string of elsif checking strings that come in from outside against known commands. Seeking opinions on the desirability of using an enumerated type with 'VAL and a case statement. The sore spot is the need for an exception handler when the incoming string matches none of the literals in the command list. What would YOU do? And yes, "look the other way" is a viable answer. :-) -- --------------------------------------------------------------------------- W. Wesley Groleau (Wes) Office: 219-429-4923 Magnavox - Mail Stop 10-40 Home: 219-471-7206 Fort Wayne, IN 46808 elm (Unix): wwgrol@pseserv3.fw.hac.com ---------------------------------------------------------------------------