Deutsch   English   Français   Italiano  
<vpq3nm$35inm$4@dont-email.me>

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

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: David Brown <david.brown@hesbynett.no>
Newsgroups: comp.lang.c
Subject: Re: Which code style do you prefer the most?
Date: Thu, 27 Feb 2025 17:26:29 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <vpq3nm$35inm$4@dont-email.me>
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; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 27 Feb 2025 17:26:30 +0100 (CET)
Injection-Info: dont-email.me; posting-host="06a8019a08c63385063fcd606aa3c794";
	logging-data="3328758"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/B5i/LZZruCa4De5WGKyqfe1IH95a5XuQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.11.0
Cancel-Lock: sha1:T9Sw+bZ4qPYZ+zie1ME/XxEUrDQ=
In-Reply-To: <vpprv6$34o4m$2@dont-email.me>
Content-Language: en-GB
Bytes: 2076

On 27/02/2025 15:13, Richard Heathfield wrote:
> 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.
> 

The bug, of course, is using Windows and Windows-style paths :-)

(Nice to have you back, Richard.)