Re: Range checking not working as expected?
- From: Maciej Sobczak <no.spam@xxxxxxxxxxx>
- Date: Thu, 28 Jul 2005 17:35:17 +0200
Vinzent 'Gadget' Hoefler wrote:
Try again after compiling with -gnato to actually enable the overflow checking.
OK, it "works" now. It is still not what I'd expect - "the default in Ada is safety", or something like this; I'd expect to actually need to go into some troubles to disable such checking. But it is still good that it works by default for non-border-case definitions like range 1..10. I presume that in practice the Integer type is not widely used and that typical ranges have limits dependent on the given domain and not on some hardware specifics.
Thank you for explanation,
-- Maciej Sobczak : http://www.msobczak.com/ Programming : http://www.msobczak.com/prog/ .
- Follow-Ups:
- Re: Range checking not working as expected?
- From: Randy Brukardt
- Re: Range checking not working as expected?
- From: Mark Lorenzen
- Re: Range checking not working as expected?
- From: Jeffrey Carter
- Re: Range checking not working as expected?
- References:
- Range checking not working as expected?
- From: Maciej Sobczak
- Re: Range checking not working as expected?
- From: Vinzent 'Gadget' Hoefler
- Range checking not working as expected?
- Prev by Date: Re: Range checking not working as expected?
- Next by Date: Re: Help needed for ada package
- Previous by thread: Re: Range checking not working as expected?
- Next by thread: Re: Range checking not working as expected?
- Index(es):