From: "Ken Garlington" <Ken.Garlington@computer.org>
Subject: Re: Representation clause for enumeratives
Date: Mon, 12 Feb 2001 02:34:25 GMT
Date: 2001-02-12T02:34:25+00:00 [thread overview]
Message-ID: <RYHh6.5908$y03.383270@news.flash.net> (raw)
In-Reply-To: 967ar9$sq7$1@nnrp1.deja.com
"Robert Dewar" <dewar@gnat.com> wrote in message
news:967ar9$sq7$1@nnrp1.deja.com...
: In article <OExh6.5397$y03.334735@news.flash.net>,
: "Ken Garlington" <Ken.Garlington@computer.org> wrote:
: > For example, I'd argue that -16#FFFF_FFFF# .. -1 is both
: > "representable" in 32 bits and in the range System.Min_Int ..
: > System.Max_Int.
:
: > Words about treating a set with no negative values as
: > unsigned values, and as unbiased signed values otherwise
: > would have been clearer to me.
:
: Don't hesitate to make documentation suggestions, many
: improvements to the documentation come from suggestions
: sent to report@gnat.com.
:
: In this particular case, the RM of course does not allow
: biasing of representations when an enumeration representation
: clause is present, since this is one of the few (really the
: only) case where the RM has something to say about
: representation, and indeed the ACVC tests (I wrote the relevant
: ones :-) test this by doing unchecked conversion.
Would "biased" be the correct term for a representation of -16#FFFF_FFFF#
.. -1, where you use two's complement convention to store all negative
numbers (and ignore overflow)?
I'm also curious about how the ACVC tests use unchecked conversion in a
portable manner in this case. In particular, what are you converting _to_?
: But it never hurts to emphasize things in the documentation,
: so I agree it would be helpful to point out that biased
: representations cannot be used for enumeration types!
:
:
: Sent via Deja.com
: http://www.deja.com/
next prev parent reply other threads:[~2001-02-12 2:34 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-08 9:53 Representation clause for enumeratives Sandro Binetti
2001-02-08 10:12 ` Tarjei T. Jensen
[not found] ` <95u470$ho1$1@nnrp1.deja.com>
[not found] ` <95ua6q$mp4$1@nnrp1.deja.com>
2001-02-08 15:41 ` M. Kotiaho
2001-02-08 16:27 ` Steve O'Neill
2001-02-09 7:26 ` Sandro Binetti
2001-02-09 9:29 ` Martin Dowie
2001-02-08 15:55 ` Marin David Condic
2001-02-08 16:22 ` Rod Chapman
2001-02-10 6:34 ` Robert Dewar
2001-02-12 11:32 ` Rod Chapman
2001-02-08 18:52 ` Greg Bek
[not found] ` <Ndyg6.1048$y03.96769@news.flash.net>
2001-02-09 5:02 ` Ken Garlington
2001-02-10 6:29 ` Robert Dewar
2001-02-10 16:37 ` Ken Garlington
2001-02-10 17:29 ` Robert Dewar
2001-02-11 1:09 ` Ken Garlington
2001-02-11 5:27 ` Robert Dewar
2001-02-11 12:53 ` Laurent Guerby
2001-02-12 0:24 ` Robert Dewar
2001-02-12 20:10 ` Laurent Guerby
2001-02-11 14:50 ` Ken Garlington
2001-02-10 17:31 ` Robert Dewar
2001-02-11 1:09 ` Ken Garlington
2001-02-11 5:28 ` Robert Dewar
2001-02-11 14:50 ` Ken Garlington
2001-02-12 0:30 ` Robert Dewar
2001-02-12 2:34 ` Ken Garlington [this message]
2001-02-10 6:19 ` Robert Dewar
2001-02-10 11:42 ` David C. Hoos, Sr.
2001-02-10 16:37 ` Ken Garlington
[not found] ` <3A829EB8.A098925E@baesystems.com>
[not found] ` <95uae3$n5j$1@nnrp1.deja.com>
2001-02-12 9:12 ` Stuart Palin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox