From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Fixed point constants issue
Date: Tue, 28 Sep 2010 10:28:43 -0700
Date: 2010-09-28T10:28:43-07:00 [thread overview]
Message-ID: <i7t9el$95r$1@tornado.tornevall.net> (raw)
In-Reply-To: <i7s88s$vrv$1@speranza.aioe.org>
On 09/28/2010 01:16 AM, Markus Schöpflin wrote:
>
> To quote ARM83 4.6 again: "An implicit conversion of an operand of type
> [...] universal_real to another real type, can only be applied if the
> operand is either a numeric literal, a named number, or an attribute;
> [...]"
>
> So an implicit conversion will never be applied to the result of
> universal_integer * universal_real, as the operand of the conversion is
> an expression. But an implicit conversion to ALTITUDE would be needed
> for universal_integer * universal_real -> universal_real to be used.
Having read the section, I see what you're saying now. I was unclear because of
the use of "operand"; I thought it referred to an operand of "*", but it refers
to the operand of the implicit type conversion.
This does seem to indicate that
function "*" (Left : Integer; Right : Altitude) return Altitude;
is used in this case, and what I was taught is incorrect.
It would be nice to hear from someone who implemented an Ada-83 compiler. We
know you're out there.
--
Jeff Carter
"People called Romanes, they go the house?"
Monty Python's Life of Brian
79
next prev parent reply other threads:[~2010-09-28 17:28 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-13 17:27 Fixed point constants issue Vinzent Hoefler
2010-09-13 18:04 ` Dmitry A. Kazakov
2010-09-13 18:25 ` Vinzent Hoefler
2010-09-13 19:05 ` Niklas Holsti
2010-09-13 20:35 ` Vinzent Hoefler
2010-09-13 20:35 ` Jeffrey Carter
2010-09-13 21:06 ` Vinzent Hoefler
2010-09-14 5:39 ` Niklas Holsti
2010-09-24 14:43 ` Markus Schöpflin
2010-09-24 20:05 ` Vinzent Hoefler
2010-09-24 21:38 ` Jeffrey Carter
2010-09-24 22:42 ` Vinzent Hoefler
2010-09-25 0:16 ` Jeffrey Carter
2010-09-27 10:33 ` Markus Schöpflin
2010-09-27 18:57 ` Jeffrey Carter
2010-09-28 8:16 ` Markus Schöpflin
2010-09-28 17:28 ` Jeffrey Carter [this message]
2010-10-05 6:27 ` Randy Brukardt
2010-10-05 18:40 ` Jeffrey Carter
2010-09-27 17:58 ` Adam Beneschan
2010-09-13 20:32 ` Dmitry A. Kazakov
2010-09-13 21:08 ` Vinzent Hoefler
2010-09-14 6:54 ` J-P. Rosen
2010-09-14 18:28 ` Vinzent Hoefler
2010-09-14 7:47 ` Dmitry A. Kazakov
2010-09-14 17:42 ` Vinzent Hoefler
2010-09-15 8:35 ` Dmitry A. Kazakov
2010-09-15 17:24 ` Vinzent Hoefler
2010-09-15 20:11 ` Dmitry A. Kazakov
2010-09-14 19:44 ` Keith Thompson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox