comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal MALAISE <malaise@magic.fr>
Subject: Need exception despite Machine_Overflows is false
Date: 1998/12/17
Date: 1998-12-17T19:53:36+00:00	[thread overview]
Message-ID: <36796140.62B2788C@magic.fr> (raw)

Using gnat 3.10p on Linux,
I make several computations on long_float (s), then use a
text_io.float_io
to display the results => NaN*****

There is an overflow, Gnat uses the libc, long_float'Machine_Overflows
is false...
fair enough.

What can I do to get a constraint_error raised when there is an
overflow?
Don't tell me that I have to check, via an interface to C finite(), the
result of
each operation!

-- 
Pascal MALAISE
(priv) mailto:malaise@magic.fr
(prof) mailto:malaise@fr.airsysatm.thomson-csf.com




             reply	other threads:[~1998-12-17  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-17  0:00 Pascal MALAISE [this message]
1998-12-17  0:00 ` Need exception despite Machine_Overflows is false Matthew Heaney
1998-12-18  0:00   ` dewarr
1998-12-18  0:00     ` Matthew Heaney
1998-12-19  0:00       ` dewar
1998-12-18  0:00 ` Stephen Leake
1998-12-18  0:00   ` Matthew Heaney
1998-12-18  0:00   ` Pascal MALAISE
1998-12-19  0:00     ` dewarr
replies disabled

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