comp.lang.ada
 help / color / mirror / Atom feed
From: "W. Wesley Groleau (Wes)" <wwgrol@PSESERV3.FW.HAC.COM>
Subject: Ada 83 Style Query
Date: 1996/05/06
Date: 1996-05-06T00:00:00+00:00	[thread overview]
Message-ID: <9605061517.AA05599@most> (raw)


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
---------------------------------------------------------------------------




             reply	other threads:[~1996-05-06  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-06  0:00 W. Wesley Groleau (Wes) [this message]
1996-05-06  0:00 ` Ada 83 Style Query Theodore E. Dennison
1996-05-06  0:00 ` John Herro
1996-05-07  0:00 ` Laurent Guerby
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox