v2.2 Draft for an elementsof paper
Alejandro Colomar
alx@kernel.org
Wed Aug 14 21:10:17 GMT 2024
[To: s/gcc-patches/gcc/]
Hi,
Attached is a new revision of the proposal for WG14 for adding an
elementsof() operator (both the man(7) source, and the generated PDF).
v2.2:
- Rename lengthof => elementsof. Aaron found incompatible existing
functions called lengthof() in the wild.
- Require parens in ISO C. Leave sizeof-like syntax as a (recommended)
QoI detail. It should give more freedom to implementations to start
with something simple, if they need it. [Jens]
- Document prior art in C and C++. [Jens, Aaron]
- Document a rationale for the naming choice. [Jens, Aaron]
- Document backwards compatiblity. [Jens, Aaron]
- Document why we don't propose an uglified name. [Jens]
- Add a few specific questions for WG14. [Jens]
Have a lovely day!
Alex
--
<https://www.alejandro-colomar.es/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: elementsof.man
Type: application/x-troff-man
Size: 20721 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20240814/eede0078/attachment-0001.man>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: elementsof.pdf
Type: application/pdf
Size: 24545 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20240814/eede0078/attachment-0001.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20240814/eede0078/attachment-0001.sig>
More information about the Gcc
mailing list