comp.lang.ada
 help / color / mirror / Atom feed
From: Peter Hermann <ica2ph@sinus.csv.ica.uni-stuttgart.de>
Subject: Re: enumeration type
Date: Mon, 27 Sep 2004 09:45:06 +0000 (UTC)
Date: 2004-09-27T09:45:06+00:00	[thread overview]
Message-ID: <cj8nf0$ond$1@news.BelWue.DE> (raw)
In-Reply-To: cj7lvp$ao3$00$1@news.t-online.com

Rick Santa-Cruz <rick_santa_cruz75@msn.com> wrote:
> type Boolean is (True, Maybe, False);

I do not recommend to overload the type boolean.

Furthermore I recommend to use the same "bit pattern"
of internal representation similar to boolean
in case of future hardware-related usefulness, e.g.

type fuzzy is (false,true,maybe);

and now a final joke:

> if X = Standard.Boolean.True then

(-:         if x then           :-)

-- 
--Peter Hermann(49)0711-685-3611 fax3758 ica2ph@csv.ica.uni-stuttgart.de
--Pfaffenwaldring 27 Raum 114, D-70569 Stuttgart Uni Computeranwendungen
--http://www.csv.ica.uni-stuttgart.de/homes/ph/
--Team Ada: "C'mon people let the world begin" (Paul McCartney)



  parent reply	other threads:[~2004-09-27  9:45 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
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 [this message]
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