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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9559956f3f3ac452 X-Google-Attributes: gid103376,public From: adam@irvine.com (Adam Beneschan) Subject: Re: reset boolean. Date: 1996/08/21 Message-ID: <4vflga$i93@krusty.irvine.com>#1/1 X-Deja-AN: 175544679 references: <4v8jks$gjs@goanna.cs.rmit.edu.au> <01bb8f58.afd6bb00$fc899dc0@fielding.east.alsys.com> organization: /z/news/newsctl/organization newsgroups: comp.lang.ada Date: 1996-08-21T00:00:00+00:00 List-Id: Neil O'Brien writes: > >On Sunday, August 18, 1996, Charlie_Brown wrote... >> Hi to all, >> I have a question regarding a boolean statement. >> What I want to do is reset the statement to neither false nor true. >> Is it possible? >> If anyone has an idea please help me out. >> Thanks in advance. >> Lyndon. >> > >It is a truth value, it can only have two possible settings true or false, >but you could declare your own enumeration type for example > >my_bool is (true, false, neutral) > >and use that instead - to be honest it seems a bit of a bizarre thing to >want to do, perhaps if you explained why you want it someone might be able >to suggest a better way. > I've never understood these three-way Booleans. To be complete, shouldn't there be a lot more values in the enumeration type? E.g.: type My_Bool is (True, False, Maybe, True_And_False, It_Depends, Dont_Know, Dont_Care, None_Of_Your_Business, All_Of_The_Above); :) -- Adam