comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <no.spam@no.spam.com>
Subject: Re: Range checking not working as expected?
Date: Thu, 28 Jul 2005 17:35:17 +0200
Date: 2005-07-28T17:35:17+02:00	[thread overview]
Message-ID: <dcatvk$iji$1@sunnews.cern.ch> (raw)
In-Reply-To: <1305313.0eqo9PA42Q@jellix.jlfencey.com>

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/



  reply	other threads:[~2005-07-28 15:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-28 15:00 Range checking not working as expected? Maciej Sobczak
2005-07-28 15:17 ` Vinzent 'Gadget' Hoefler
2005-07-28 15:35   ` Maciej Sobczak [this message]
2005-07-28 16:25     ` Jeffrey Carter
2005-07-28 18:10     ` Mark Lorenzen
2005-07-29  0:18     ` Randy Brukardt
replies disabled

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