comp.lang.ada
 help / color / mirror / Atom feed
* Re: GNAT Constraint Catching
@ 2002-04-15  8:17 Christoph Grein
  0 siblings, 0 replies; 3+ messages in thread
From: Christoph Grein @ 2002-04-15  8:17 UTC (permalink / raw)


> From: Matthew Baulch <matt@greenroom.com.au>
> 
> Hi,
> 
> I've just switched compilers to GNAT which i have been
> very impressed with, all except for one minor issue. Instead
> of catching an integer constraint error and executing my error handling
> code, it appears to overflow starting back at the lowest possible value.
> 
> Any ideas?
> 
> thanks

See the Gnat documentation. In standard mode, integer overflow checking is 
switched off. You have to use a certain compiler switch to switch it on:

-gnato



^ permalink raw reply	[flat|nested] 3+ messages in thread
* GNAT Constraint Catching
@ 2002-04-15  8:06 Matthew Baulch
  2002-04-15  8:37 ` David C. Hoos, Sr.
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Baulch @ 2002-04-15  8:06 UTC (permalink / raw)


Hi,

I've just switched compilers to GNAT which i have been
very impressed with, all except for one minor issue. Instead
of catching an integer constraint error and executing my error handling
code, it appears to overflow starting back at the lowest possible value.

Any ideas?

thanks




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

end of thread, other threads:[~2002-04-15  8:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-15  8:17 GNAT Constraint Catching Christoph Grein
  -- strict thread matches above, loose matches on Subject: below --
2002-04-15  8:06 Matthew Baulch
2002-04-15  8:37 ` David C. Hoos, Sr.

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