From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Unconstrained base subtype questions
Date: Fri, 1 Apr 2011 10:20:48 +0200
Date: 2011-04-01T10:20:47+02:00 [thread overview]
Message-ID: <1156kd5j961zs$.1say3mvrbaofw$.dlg@40tude.net> (raw)
In-Reply-To: in2t10$sfq$1@dont-email.me
On Thu, 31 Mar 2011 21:51:29 +0000 (UTC), Alex Mentis wrote:
> Using variables gave me the behavior I was expecting. I didn't know Ada
> did infinite precision arithmetic on static expressions.
It tries:
P : constant := 1_000_000;
I : constant := 2**P - 2**P;
will likely fail to compile.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
prev parent reply other threads:[~2011-04-01 8:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-31 20:25 Unconstrained base subtype questions Alex Mentis
2011-03-31 21:09 ` Ludovic Brenta
2011-03-31 21:26 ` Alex Mentis
2011-03-31 21:36 ` Ludovic Brenta
2011-03-31 22:18 ` Adam Beneschan
2011-03-31 21:10 ` Adam Beneschan
2011-03-31 21:18 ` Simon Wright
2011-03-31 21:24 ` Randy Brukardt
2011-03-31 21:51 ` Alex Mentis
2011-04-01 8:20 ` Dmitry A. Kazakov [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox