comp.lang.ada
 help / color / mirror / Atom feed
From: "Ken Garlington" <Ken.Garlington@computer.org>
Subject: Re: Representation clause
Date: Mon, 26 Feb 2001 00:53:02 GMT
Date: 2001-02-26T00:53:02+00:00	[thread overview]
Message-ID: <ONhm6.2775$Yu6.313393246@newssvr10-int.news.prodigy.com> (raw)
In-Reply-To: CQdm6.136516$Ch.25230662@newsrump.sjc.telocity.net

"David C. Hoos, Sr." <david.c.hoos.sr@ada95.com> wrote in message
news:CQdm6.136516$Ch.25230662@newsrump.sjc.telocity.net...

: The fact that a given compiler may do reasonable things when the
: sizes of the actual parameters of an instantiation of
: Ada.Unchecked_Conversion are unequal, is not a property on
: which I would like to depend.  However, since there is at least one
: compiler for which my comment is not true, I have modified my
: comment to read as follows:
:
:    -- The enumeration's 'Size attribute must be the same as that of
:    -- the representation type, else the effect is implementation-
:    -- defined; in particular, the result can be abnormal (see
:    -- RM95 13.9.1).

Certainly, you don't want to depend upon that behavior, and the comment is
better. I am curious about the interpretation of the ARM in one area,
however. 13.3:47 and 13.9:4 seems to guarantee that we can depend on 'Size
applied to the subtype being honored by the Unchecked_Conversion  *source*
parameter; are there any issues with the *target* object not being the same
'Size as its subtype? If the intent is to point out that there are
restrictions related to the underlying dependence on Unchecked_Conversion, a
reference to 13.9:5-11 would seem more appropriate. In fact, 13.9:9 might
imply that you could _never_ depend upon this working...







      reply	other threads:[~2001-02-26  0:53 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-23  2:39 Representation clause Anatoly Chernyshev
2001-02-23  3:59 ` James Rogers
2001-02-23  8:46   ` Ada 0x: " Martin Dowie
2001-02-23  9:01     ` Lutz Donnerhacke
2001-02-23 10:22       ` David C. Hoos, Sr.
2001-02-23 13:56         ` Florian Weimer
2001-02-23 14:57           ` David C. Hoos, Sr.
2001-02-23 21:38             ` Florian Weimer
2001-02-23 21:12     ` Randy Brukardt
2001-02-24  5:44       ` James Rogers
2001-02-24 10:43         ` Florian Weimer
2001-02-24 17:47           ` James Rogers
2001-02-26 19:51             ` Randy Brukardt
2001-02-26 20:20               ` James Rogers
     [not found]                 ` <WURm6.3437$7e6.1392211@homer.alpha.net>
2001-02-28  2:32                   ` James Rogers
2001-02-23 13:25 ` Marc A. Criley
2001-02-23 14:08 ` Des Walker
2001-02-24 13:26 ` David C. Hoos, Sr.
2001-02-24 14:45   ` Ken Garlington
2001-02-25 20:22     ` David C. Hoos, Sr.
2001-02-26  0:53       ` Ken Garlington [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