Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: Why is this happening?
Date: Sun, 29 Mar 2026 14:43:52 -0700
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <86341i2twn.fsf@linuxsc.com>
References: <10q5046$3ec1o$2@dont-email.me> <10q523v$3e865$1@dont-email.me> <10q7bug$7vod$1@dont-email.me> <87bjg8wrgl.fsf@example.invalid> <86bjg72xl6.fsf@linuxsc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Sun, 29 Mar 2026 21:43:53 +0000 (UTC)
Injection-Info: dont-email.me; posting-host="8b6e2ad1f6d4b3e2ca51dfb376f541d7"; logging-data="2042663"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/xiIQqOYtQ+7Fi2OliHw31HyInJjszc+A="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:C0jpGaHEQyzPJhyfmRLFatuze84= sha1:ie6ctp5NHS25smTH9smKLW3nKcU=
Xref: csiph.com comp.lang.c:397284
Tim Rentsch writes:
> scott@slp53.sl.home (Scott Lurndal) writes:
>
>> Keith Thompson writes:
>>
>>> Lawrence D <> ??Oliveiro writes:
>>>
>>>> On Fri, 27 Mar 2026 10:15:23 +0100, Josef M@C3{B6}llers wrote:
>>>>
>>>>> diffns += 1000000000UL;
>>>>
>>>> Can you write
>>>>
>>>> diffns += 1_000_000_000UL;
>>>>
>>>> yet?
>>>
>>> Not in C. C23 introduces the apostrophe as a digit separator,
>>> copied from C++:
>>>
>>> diffns += 1'000'000'000UL;
>>
>> Or diffns += 1000ul * 1000ul * 1000ul;
>>
>> or diffns += 1 * NS_PER_SEC;
>>
>> with
>> #define NS_PER_SEC ((1000ul * 1000ul * 1000ul))
>>
>>> (I would have preferred underscores, but that would have
>>> conflicted with C++'s user-defined literals.)
>>
>> Likewise, I'd prefer the underscore.
>
> Ditto. And there is no reason C could have allowed both,
> and C++ be damned.
Of course I meant there is no reason C couldn't have allowed
both. Sorry for any confusion.