Sujet : Re: Results of survey re. a new array size operator
De : ben (at) *nospam* bsb.me.uk (Ben Bacarisse)
Groupes : comp.lang.cDate : 29. Jan 2025, 17:00:54
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <87ldut38zt.fsf@bsb.me.uk>
References : 1
User-Agent : Gnus/5.13 (Gnus v5.13)
Alexis <
flexibeast@gmail.com> writes:
JeanHeyd Meneide, a Project Editor for WG14, has just posted the results
of a survey re. the preferred form of a new array size operator:
>
-- https://thephd.dev/the-big-array-size-survey-for-c-results
Curious. The top objection to the usual macro solution is given as:
* double-evaluation of e.g. getting the size of the 1-d part of a 2-d
array int meow[3][4]; /* ... */ SIZE_KEYWORD(meow[first_idx()]);
Does the author not know that there is no evaluation of the operands of
sizeof in this example?
His "About" pages says "Project Editor for ISO/IEC JTC1 SC22 WG14 -
Programming Languages, C".
-- Ben.