Article View: comp.lang.c
Article #1253Re: .5 against 0.5f
From: Keith Thompson
Date: Mon, 02 Nov 2026 00:03
Date: Mon, 02 Nov 2026 00:03
20 lines
2290 bytes
2290 bytes
Lawrence D’Oliveiro <ldo@nz.invalid> writes:
> On Sun, 1 Nov 2026 17:15:23 -0500, James Kuyper wrote:
>> On 2010-08-28, Tony Clough wrote that "One possible problem with C
>> as compared to other languages like Perl or Shell is that function
>> calls require parentheses which leads to cluttered code. (But there
>> are some funny exceptions in the standard library though, eg return
>> and size_of do not need parentheses)"
>
> sizeof does require parentheses if you pass it a type, not for an
> expression (except for the usual precedence reasons).
>
> Not sure why that is ...
Because if parentheses were not required around the type name, it would
result in ambiguities. (I don't have an example off the top of my
head.)
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Technical Details
Message-ID:
<11c8k0t$2e89e$1@kst.eternal-september.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!kst.eternal-september.org!.POSTED!not-for-mailReferences:
<11bpvs7$1e6kc$2@dont-email.me> <868q3hmie0.fsf@linuxsc.com> <11bu8oi$2up7m$1@dont-email.me> <11bvqbn$3g0tj$1@dont-email.me> <11c07vf$lhk$1@reader2.panix.com> <11c0fcj$2t865$2@dont-email.me> <11c8dls$2chr0$1@dont-email.me> <11c8i0t$2dr35$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!kst.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson <Keith.S.Thompson+u@gmail.com> Newsgroups: comp.lang.c Subject: Re: .5 against 0.5f Date: Sun, 01 Nov 2026 16:03:41 -0800 Organization: None to speak of Lines: 20 Message-ID: <11c8k0t$2e89e$1@kst.eternal-september.org> References: <11bpvs7$1e6kc$2@dont-email.me> <868q3hmie0.fsf@linuxsc.com> <11bu8oi$2up7m$1@dont-email.me> <11bvqbn$3g0tj$1@dont-email.me> <11c07vf$lhk$1@reader2.panix.com> <11c0fcj$2t865$2@dont-email.me> <11c8dls$2chr0$1@dont-email.me> <11c8i0t$2dr35$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 02 Nov 2026 00:03:42 +0000 (UTC) Injection-Info: kst.eternal-september.org; logging-data="2564398"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+//TxY14kTOREwqGiqZRW7"; posting-host="b2b9691d5f86313d524e66216e8e116e" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:q0/7d0ymGj6o4RI9sNvV6rKr9qg= sha256:WLk7gxOpmYwiXvdkQ1jY4b7H4V97BAb//FvFX1YbOhc= sha1:B60qSjJ4rN63c8cREtx2nwFK5HE= sha256:BI/d6Jnadm6QBNHK7sl21TwRWuz4ndgNEufz6Ww9puY=