From: Bryce Bardin <bbardin@home.com>
Subject: Re: Enumeration representation
Date: 1999/09/12
Date: 1999-09-12T00:00:00+00:00 [thread overview]
Message-ID: <37DB15A2.2CF36CC8@home.com> (raw)
In-Reply-To: yeczoyt2hxx.fsf@king.cts.com
Keith Thompson wrote:
>
> Robert Dewar <robert_dewar@my-deja.com> writes:
> > In article <yecn1uu9xy2.fsf@king.cts.com>,
> > Keith Thompson <kst@cts.com> wrote:
> > If you try to read
> > > such a value from an external interface, it's very difficult
> > > to check that you've gotten a valid value without invoking
> > > erroneous execution (undefined behavior).
> >
> > No, it is quite easy, do an unchecked conversion of the value
> > into the enumeration variable, or just read the value in
> > directly with appropriate low level I/O, then do a 'Valid test.
> >
> > And Keith, before you go rummaging around legalise in the RM,
> > be sure to read the relevant AI, whose purpose is basically
> > to say, yes of course the above works, whatever the RM says :-)
>
> Ok, I think you're right.
>
> As I recall, a strict reading of the RM implies that the above obvious
> approach invokes erroneous execution, though a conforming
> implementation would have to be somewhat perverse to make it do
> anything other than the obvious. (I think you could avoid
> erroneousness by wraping the enumeration variable in a record.) Given
> the AI (whose status I haven't followed lately), such an
> implementation would have to be both perverse and non-conforming --
> hopefully an unlikely combination.
>
> Do you happen to remember the AI number? I'm pretty sure it was based
> on a comment I submitted.
AI95-00167/01, which is proposed to be a binding interpretation, but is
not yet written up in final form nor approved by either the ARG or WG9,
as far as I know.
<snip>
Bryce Bardin
next prev parent reply other threads:[~1999-09-12 0:00 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-10 0:00 Enumeration representation Alex
1999-09-10 0:00 ` Ted Dennison
1999-09-10 0:00 ` Robert Dewar
1999-09-13 0:00 ` Ted Dennison
1999-09-10 0:00 ` David C. Hoos, Sr.
1999-09-10 0:00 ` Robert Dewar
1999-09-10 0:00 ` Matthew Heaney
1999-09-10 0:00 ` Robert Dewar
1999-09-10 0:00 ` Keith Thompson
1999-09-11 0:00 ` Robert Dewar
1999-09-11 0:00 ` Keith Thompson
1999-09-12 0:00 ` Bryce Bardin [this message]
1999-09-13 0:00 ` Robert Dewar
1999-09-13 0:00 ` Keith Thompson
1999-09-13 0:00 ` Robert Dewar
1999-09-12 0:00 ` Keith Thompson
1999-09-13 0:00 ` Robert Dewar
1999-09-13 0:00 ` Keith Thompson
1999-09-14 0:00 ` Robert Dewar
1999-09-13 0:00 ` Ted Dennison
1999-09-13 0:00 ` Robert A Duff
1999-09-13 0:00 ` Robert Dewar
1999-09-13 0:00 ` Alex
-- strict thread matches above, loose matches on Subject: below --
2004-01-01 20:44 Luke A. Guest
2004-01-01 21:45 ` Stephen Leake
2004-01-01 22:01 ` Luke A. Guest
2004-01-02 1:17 ` tmoran
2004-01-02 1:29 ` Stephen Leake
2004-01-02 3:10 ` Luke A. Guest
2004-01-02 2:46 ` Robert A Duff
2004-01-02 3:12 ` Luke A. Guest
2004-01-02 13:58 ` Marin David Condic
2004-01-02 21:39 ` Pat Rogers
2004-01-03 13:42 ` Marin David Condic
2004-01-03 1:53 ` Robert A Duff
2004-01-02 20:52 ` Randy Brukardt
2004-01-02 21:05 ` Luke A. Guest
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox