From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Weird behavior with modular type
Date: Wed, 8 Feb 2012 21:37:31 -0600
Date: 2012-02-08T21:37:31-06:00 [thread overview]
Message-ID: <jgvf21$46h$1@munin.nbi.dk> (raw)
In-Reply-To: op.v9bmlfrvule2fv@douda-yannick
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 623 bytes --]
"Yannick Duch�ne (Hibou57)" <yannick_duchene@yahoo.fr> wrote in message
news:op.v9bmlfrvule2fv@douda-yannick...
...
>I still can't explain the first and the second interpretation. In the
>first case "10 ** I" seems to be interpreted as "(10 ** I) mod 256" and
>"Natural'Pos (10 ** I)" seems not.
Yes, that's right of course. In the first case, everything has your modular
type, in the latter case the expression has type Universal_Integer (which is
obviously different).
Ada always prefers non-universal types, so those are only used in rare
circumstances.
Randy.
next prev parent reply other threads:[~2012-02-09 3:37 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-07 17:24 Weird behavior with modular type Yannick Duchêne (Hibou57)
2012-02-07 17:49 ` Jeffrey Carter
2012-02-07 18:06 ` Adam Beneschan
2012-02-07 18:21 ` Yannick Duchêne (Hibou57)
2012-02-08 6:53 ` J-P. Rosen
2012-02-08 15:29 ` Adam Beneschan
2012-02-09 3:37 ` Randy Brukardt [this message]
2012-02-07 18:15 ` Yannick Duchêne (Hibou57)
2012-02-07 17:53 ` Adam Beneschan
2012-02-07 17:54 ` Gautier write-only
2012-02-07 18:23 ` Yannick Duchêne (Hibou57)
2012-02-09 3:40 ` Randy Brukardt
2012-02-07 18:02 ` Adam Beneschan
2012-02-07 18:32 ` Georg Bauhaus
2012-02-07 18:13 ` Yannick Duchêne (Hibou57)
2012-02-07 18:15 ` Adam Beneschan
2012-02-07 18:35 ` Yannick Duchêne (Hibou57)
2012-02-07 18:40 ` Adam Beneschan
2012-02-07 19:22 ` Yannick Duchêne (Hibou57)
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox