comp.lang.ada
 help / color / mirror / Atom feed
From: "Gerhard J. Feichtinger" <gerhard.j.feichtinger@lmco.com>
Subject: Re: Enumerated types and attributes thereof?
Date: 1998/04/17
Date: 1998-04-17T00:00:00+00:00	[thread overview]
Message-ID: <3537B578.2D1EF79C@lmco.com> (raw)
In-Reply-To: 3537A1F6.41C6@lmco.com


Hello again,

Never mind -- :(  No other way to do it.

Gerhard.

Gerhard J. Feichtinger wrote:

> Hey all,
>
> I have a question.... (Ada 83)
>
> Let's say you have TEST_TYPE (one, three, five) uses (one => 1,
> three => 3, five => 5).
>
> How can I, without using UNCHECKED_CONVERSION get an INTEGER 1,3,5
> converted to the correct value of TEST_TYPE?
>
> Can't do it using <'val>  TEST_TYPE'val(1) eval's to three.
> Incidentally <'pos> is screwy  TEST_TYPE'pos(one) eval's to 0.
>
> I probably am asking a silly question...
>
> Gerhard.
> --
>  Gerhard J. Feichtinger             gerhard.j.feichtinger@lmco.com
>  My opinions do not necessarily reflect those of Lockheed Martin FS.



--
 Gerhard J. Feichtinger             gerhard.j.feichtinger@lmco.com
 My opinions do not necessarily reflect those of Lockheed Martin FS.






  reply	other threads:[~1998-04-17  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-17  0:00 Enumerated types and attributes thereof? Gerhard J. Feichtinger
1998-04-17  0:00 ` Gerhard J. Feichtinger [this message]
1998-04-18  0:00 ` Robert Dewar
replies disabled

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