From: rational.com!geneo@uunet.uu.net (Gene Ouye)
Subject: Re: Bug in AdaEd???
Date: 6 Sep 93 14:06:29 GMT [thread overview]
Message-ID: <1993Sep6.140629.12405@rational.com> (raw)
Zoltan Sugar (omega@fsz.bme.hu) wrote:
: I wrote a liitle test program in Ada with AdaEd translator.
: declare
: subtype t is boolean range true .. true;
: a: t;
: begin
: a:= true;
: a:= not a;
: end;
: And this program didn't cause constraint error exception;
: A have a question. It is correct or not???
This SHOULD have raised CONSTRAINT_ERROR. Just out of curiosity, were
you able to print the value of A after the negation and see FALSE?
Eg, Text_Io.Put_Line ("Value of a => " & Boolean'Image (A));
: If a wrote this program with integer type (range 1 .. 1, and using abs
instead
: of not) there was constraint error exception. I don't understand it.
To the best of my understanding of abs, this SHOULD NOT have raised an
exception. If this is what is really happening, these sound like bugs
to me.
: Zoltan Sugar
: omega@fix.fsz.bme.hu
--
Gene Ouye (geneo@rational.com) Rational, Bethesda, MD, USA
(301) 897-4014
next reply other threads:[~1993-09-06 14:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-09-06 14:06 Gene Ouye [this message]
-- strict thread matches above, loose matches on Subject: below --
1993-09-07 3:20 Bug in AdaEd??? Robert Dewar
1993-09-21 4:19 Gene Ouye
1993-09-22 0:21 Robert I. Eachus
1993-09-22 11:45 Wes Groleau x1240 C73-8
1993-09-22 13:36 cis.ohio-state.edu!news.sei.cmu.edu!firth
1993-09-22 14:10 cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!howland.reston.ans.net!usc!cs.utexas.edu!not-for-mail
1993-09-22 14:22 Norm an H. Cohen
1993-09-22 21:07 Robert I. Eachus
1993-09-22 22:28 Robert I. Eachus
1993-09-23 18:46 Tucker Taft
1993-09-23 20:55 Tucker Taft
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox