Path: csiph.com!weretis.net!feeder8.news.weretis.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Thu, 20 Jul 2023 19:05:29 -0700
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <86bkg6vx1y.fsf@linuxsc.com>
References: <20230713104558.553@kylheku.com> <1e547403-da8a-45ce-a178-79a8f62c1569n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="2d78163bfb891e7187c96a580a5a5784"; logging-data="3116812"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18GyIHrW6/V4taN2Q4JSp9w9Pms+4P5g0o="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:Ry7KGSKsxYw/QSGTDUACr1IsXFo= sha1:jDoM3B3TA2B9Fzp+RyJ6rm7g9dE=
Xref: csiph.com comp.lang.c:171005
Paul N writes:
> On Friday, July 14, 2023 at 6:26:20?PM UTC+1, Kalevi Kolttonen wrote:
>
>> David Brown wrote:
>>
>>>> Your code containing UB can work fine in the environment that you
>>>> use, but it might not work when you compile it elsewhere.
>>>
>>> Just like other bugs.
>>
>> Could you please provide a simple example of such a bug,
>> i.e. it must a bug that is not caused by relying on
>> Implementation Defined behavior or Undefined Behavior?
>
> I think you could get such a bug if you assume that the letters of
> the alphabet all have consecutive values. It's true of many
> computers today, but was not true of the mainframe when I was at
> university, which used EBCDIC instead of ASCII. As I understand it,
> this is not "Implementation Defined behaviour" because there is no
> requirement to say what values the letters have.
The values of members of the execution character set are indeed
implementation defined. Section 5.2.1, paragraph 1.