diff options
author | Michael Forney <mforney@mforney.org> | 2022-03-22 01:58:22 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2022-03-22 01:58:31 -0700 |
commit | d1cdd0839b4ef436dc8f43043d242bd49ecb28c6 (patch) | |
tree | 264e90ffe87a2dbebb44c945b0272c4f8136bf0c /doc | |
parent | 2c0de069da49d84c6b03eb6a8519deeaedc598e8 (diff) |
init: Allow empty initializers
Diffstat (limited to 'doc')
-rw-r--r-- | doc/c23.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -35,8 +35,14 @@ a function definition that does not use that parameter. C23 allows binary integer constants in addition to octal, decimal, and hexadecimal, using syntax like `0b01101011`. +## [N2900]: Consistent, warningless, and intuitive initialization with {} + +C23 allows empty initializers to initialize an object as if it had +static storage duration. + [N2265]: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2265.pdf [N2418]: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2418.pdf [N2508]: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2508.pdf [N2510]: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2510.pdf [N2549]: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2549.pdf +[N2900]: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2900.htm |