comp.lang.ada
 help / color / mirror / Atom feed
From: cis.ohio-state.edu!udecc.engr.udayton.edu!blackbird.afit.af.mil!galaxy.af
Subject: Character Type Definition
Date: 23 Jul 91 18:47:42 GMT	[thread overview]
Message-ID: <rbaldwin.680294862@galaxy.afit.af.mil> (raw)

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

             reply	other threads:[~1991-07-23 18:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-07-23 18:47 cis.ohio-state.edu!udecc.engr.udayton.edu!blackbird.afit.af.mil!galaxy.af [this message]
  -- strict thread matches above, loose matches on Subject: below --
1991-07-24 23:16 Character Type Definition Robert I. Eachus
1991-07-29  7:56 Robert I. Eachus
replies disabled

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