From: Jeffrey Carter <spam@spam.com>
Subject: Re: How casting works in ada?
Date: Tue, 23 Nov 2004 19:17:40 GMT
Date: 2004-11-23T19:17:40+00:00 [thread overview]
Message-ID: <o1Mod.3091$uV6.3012@newsread3.news.pas.earthlink.net> (raw)
In-Reply-To: <XpKod.8010$C94.2217@tornado.fastwebnet.it>
Abbo wrote:
> Hello! SOrry for this very basic question, but I'd like to know what
> happen during a simple casting between types with different size/delta.
Ada does not have casting. The ARM index entry for "cast" reads
cast
See type conversion 4.6(1)
See unchecked type conversion 13.9(1)
AFAICT, this is the only place that "cast" appears in the ARM.
The answer to your question is not simple. See ARM 3.5.9(8) for
information about how fixed-point types are represented. Loss of
expected precision in fixed-point types with deltas that are not a power
of 2 is common.
--
Jeff Carter
"We use a large, vibrating egg."
Annie Hall
44
prev parent reply other threads:[~2004-11-23 19:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-23 17:26 How casting works in ada? Abbo
2004-11-23 19:17 ` Jeffrey Carter [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