From: Stephen Leake <stephen_leake@acm.org>
To: comp.lang.ada@ada-france.org
Subject: Re: enumeration type
Date: 26 Sep 2004 21:26:08 -0400
Date: 2004-09-26T21:26:08-04:00 [thread overview]
Message-ID: <mailman.115.1096248381.390.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <cj7lvp$ao3$00$1@news.t-online.com>
"Rick Santa-Cruz" <rick_santa_cruz75@msn.com> writes:
> Hi,
>
> I have defined a new type in my program:
> type Boolean is (True, Maybe, False);
>
> Now I wanna use the standard type, that means Standard.Boolean.
> How can I now access the True-element from the original Standard.Boolean
> type? For example if I want to write something like:
> X : Standard.Boolean;
>
> if X = Standard.Boolean.True then
if X = Standard.True then
> ....
> I know that such doesn't work in ada, but how can I access the elements of
> an enumeration directly with the full qualified name?
>
> Thanks in advance for your help,
> Rick
>
>
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada-france.org
> http://www.ada-france.org/mailman/listinfo/comp.lang.ada
>
--
-- Stephe
next prev parent reply other threads:[~2004-09-27 1:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-27 0:13 enumeration type Rick Santa-Cruz
2004-09-27 0:54 ` Jack Flynn
2004-09-27 1:26 ` Stephen Leake [this message]
2004-09-27 7:38 ` Dmitry A. Kazakov
2004-09-27 13:40 ` Larry Hazel
2004-09-27 14:09 ` Dmitry A. Kazakov
2004-09-27 9:45 ` Peter Hermann
2004-09-27 12:51 ` Georg Bauhaus
2004-09-27 13:43 ` Dmitry A. Kazakov
2004-09-27 14:19 ` Georg Bauhaus
2004-09-27 14:48 ` Dmitry A. Kazakov
2004-09-27 17:18 ` Georg Bauhaus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox