comp.lang.ada
 help / color / mirror / Atom feed
From: adam@irvine.com (Adam Beneschan)
Subject: Re: reset boolean.
Date: 1996/08/21
Date: 1996-08-21T00:00:00+00:00	[thread overview]
Message-ID: <4vflga$i93@krusty.irvine.com> (raw)
In-Reply-To: 01bb8f58.afd6bb00$fc899dc0@fielding.east.alsys.com


Neil O'Brien <obrien@east.thomsoft.com> 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




  reply	other threads:[~1996-08-21  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-19  0:00 reset boolean Charlie_Brown
1996-08-18  0:00 ` Robert Dewar
1996-08-19  0:00 ` Ken Price
1996-08-21  0:00 ` Neil O'Brien
1996-08-21  0:00   ` Adam Beneschan [this message]
1996-08-22  0:00     ` Larry Hazel
1996-08-21  0:00   ` Ian Ward
replies disabled

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