comp.lang.ada
 help / color / mirror / Atom feed
From: "Ken Garlington" <Ken.Garlington@computer.org>
Subject: Re: User defined boolean
Date: Sun, 29 Oct 2000 01:22:06 GMT
Date: 2000-10-29T01:22:06+00:00	[thread overview]
Message-ID: <2ZKK5.12904$NP.941572@news.flash.net> (raw)
In-Reply-To: 39FB723B.25D05446@erols.com


"Daniel Allex" <dallex@erols.com> wrote in message
news:39FB723B.25D05446@erols.com...
: I created a type PASS_FLAG that is an enumeration type of FAIL and
: PASS.  I have seven funtions that each return PASS_FLAG, and I wanted to
: AND them together an print out the result.  My flag wont work with
: either AND or "+".  Can this be done or should I just use the predefined
: boolean.  I had reasons for defining my own enumeration type.
:

When you say "my flag won't work with AND," I assume you mean that it won't
work with the "and" function defined for Boolean. Since Pass_Flag is of a
different type than Boolean, then you probably shouldn't expect it to work
when called with values of type Pass_Flag. Have you tried declaring an "and"
function for Pass_Flag?

(P.S. It may help if you post a sample package describing what you are
trying to do...)





  reply	other threads:[~2000-10-29  1:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-29  0:41 User defined boolean Daniel Allex
2000-10-29  1:22 ` Ken Garlington [this message]
2000-10-30  1:02 ` DuckE
2000-10-30  1:58   ` Robert Dewar
2000-10-31  3:56     ` DuckE
2000-10-31 19:48       ` Robert Dewar
replies disabled

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