comp.lang.ada
 help / color / mirror / Atom feed
* Need exception despite Machine_Overflows is false
@ 1998-12-17  0:00 Pascal MALAISE
  1998-12-17  0:00 ` Matthew Heaney
  1998-12-18  0:00 ` Stephen Leake
  0 siblings, 2 replies; 9+ messages in thread
From: Pascal MALAISE @ 1998-12-17  0:00 UTC (permalink / 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




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1998-12-19  0:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-17  0:00 Need exception despite Machine_Overflows is false Pascal MALAISE
1998-12-17  0:00 ` 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

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