Sujet : Re: int a = a
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.cDate : 29. Apr 2025, 21:34:11
Autres entêtes
Organisation : None to speak of
Message-ID : <87plguzozg.fsf@nosuchdomain.example.com>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Gnus/5.13 (Gnus v5.13)
Tim Rentsch <
tr.17687@z991.linuxsc.com> writes:
Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
[how to indicate a variable not being used is okay]
[some quoted text rearranged]
>
Unless I'm missing something, `(void)x` also has undefined beahvior
if x is uninitialized,
>
Right. Using (void)&x is better.
>
I'm not convinced -- and it's far less idiomatic.
>
Both phrases are idiomatic. What you mean is one phrase is more
common than the other. More common doesn't mean better. Recall
Dijkstra's dictum, not to conclude that something is more convenient
just because it's more conventional.
[...]
Just so you're aware, I've read your post and I have nothing more
to say about it.
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */