Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Lew Pitcher Newsgroups: comp.lang.c Subject: Re: Which code style do you prefer the most? Date: Thu, 27 Feb 2025 14:21:38 -0000 (UTC) Organization: A noiseless patient Spider Lines: 32 Message-ID: References: <87v7swzzl7.fsf@onesoftnet.eu.org> <87a5a7k0ko.fsf@onesoftnet.eu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 27 Feb 2025 15:21:38 +0100 (CET) Injection-Info: dont-email.me; posting-host="aca5d22ea984de20c4adf557e425ed1a"; logging-data="3295238"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19MO4IGHcbERE1wDKbbb1hxODxs62UIkhQ=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:1DuTubBDUSU3ZVwEwlu/DBYTW7g= Bytes: 2036 On Thu, 27 Feb 2025 14:16:48 +0000, Scott Lurndal wrote: > Ar Rakin writes: >>bart 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, it is standard C line continuation behavior remaining from > the days of punched cards and (source code) files with fixed-length records. > . More useful for strings and multi-line macros > and invented prior to the invention of unterminated comments (//). -- Lew Pitcher "In Skills We Trust"