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!news1.google.com!news.glorb.com!newsfeed-east.nntpserver.com!nntpserver.com!falcon.america.net!eagle.america.net.POSTED!not-for-mail From: Larry Hazel User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: enumeration type References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Mon, 27 Sep 2004 08:40:29 -0500 NNTP-Posting-Host: 66.0.32.41 X-Trace: eagle.america.net 1096292593 66.0.32.41 (Mon, 27 Sep 2004 09:43:13 EDT) NNTP-Posting-Date: Mon, 27 Sep 2004 09:43:13 EDT Organization: 24hoursupport.com Xref: g2news1.google.com comp.lang.ada:4261 Date: 2004-09-27T08:40:29-05:00 List-Id: Dmitry A. Kazakov wrote: > 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. > How about Illogical :)