From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cd45439466e86f24 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: enumeration type Date: Mon, 27 Sep 2004 09:38:14 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de R72oTFCuHBSFSOdZgAKcYwAmsK9A1a6+GYucwzGLApYMUeggk= User-Agent: 40tude_Dialog/2.0.12.1 Xref: g2news1.google.com comp.lang.ada:4242 Date: 2004-09-27T09:38:14+02:00 List-Id: On Mon, 27 Sep 2004 02:13:27 +0200, Rick Santa-Cruz wrote: > 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 then -- (:-)) BTW, the type you define is technically not Boolean. It is better to call it Logical or Three_State_Logical. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de