From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.0 required=3.0 tests=BAYES_40 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 23 Jul 91 18:47:42 GMT From: cis.ohio-state.edu!udecc.engr.udayton.edu!blackbird.afit.af.mil!galaxy.af it.af.mil!rbaldwin@ucbvax.Berkeley.EDU Subject: Character Type Definition Message-ID: List-Id: I am new to Ada and have been trying to find out how to do the following. I would like to define a character type of disjoint ASCII characters so I can perform a membership test. For instance, subtype Math_Operators is character ('^','*','/','+','-'); -- syntax?? I am able to define the type but cannot do a membership test such as, if My_Operator in Math_Operators then ... This gives me an invalid comparison since they are not of the same type. Is there a way to do the above (a case statement will work of course). Any help would be appreciated. Thanks in advance. ----------------------------------------------------------------------------- Rusty Baldwin **Your impressive title here** rbaldwin@blackbird.afit.af.mil Air Force Institute of Technology Tel: (513)255-8989 AFIT/EN046 Wright-Patterson AFB, Ohio 45433 USA Computers are useless. They can only give you answers. - Pablo Picasso ----------------------------------------------------------------------------