Deutsch   English   Français   Italiano  
<8734fzozd2.fsf@nosuchdomain.example.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: Which code style do you prefer the most?
Date: Thu, 27 Feb 2025 13:24:09 -0800
Organization: None to speak of
Lines: 22
Message-ID: <8734fzozd2.fsf@nosuchdomain.example.com>
References: <vpkmq0$21php$1@dont-email.me> <vplhc7$26ur1$3@dont-email.me>
	<87v7swzzl7.fsf@onesoftnet.eu.org> <vpn4qi$2j0hq$1@dont-email.me>
	<vpo20n$2o9ks$1@dont-email.me> <vpo7ec$2ovro$1@dont-email.me>
	<87a5a7k0ko.fsf@onesoftnet.eu.org> <vpprv6$34o4m$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Thu, 27 Feb 2025 22:24:12 +0100 (CET)
Injection-Info: dont-email.me; posting-host="30c0bbb977f6ea4d125403ed210329fc";
	logging-data="3454972"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/M/3OZD8SBqv2MdpBCNzqw"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:+7o2pHayRPrrp5g50/YTh+ZH/iE=
	sha1:eCZNiUFVM6dVMK5wAzNWph2Zhgw=
Bytes: 2023

Richard Heathfield <rjh@cpax.org.uk> writes:
> On 27/02/2025 12:56, Ar Rakin wrote:
>> bart <bc@freeuk.com> writes:
>> 
>>> // isn't devoid of quirks (this is still C after all), for example:
>>>
>>>     fopen(file,"rb");   // open file in \windows\system32\
>>>     fread(...);
>>>
>>> Here, the // line continues onto the next, so that the fread is
>>> commented out. But they are fewer.
>> Interesting. Isn't this considered a compiler bug?
>
> No. Line splicing occurs in Translation Phase 2. Comment removal
> doesn't happen until Translation Phase3. If a compiler /didn't/ splice
> those lines, /that/ would be a bug.

<OT>Long time no see.  Welcome back!</OT>

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */