Sujet : Re: C23 thoughts and opinions - why so conservative?
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.cDate : 24. May 2024, 03:42:11
Autres entêtes
Organisation : None to speak of
Message-ID : <87sey82anw.fsf@nosuchdomain.example.com>
References : 1 2 3 4 5
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Tim Rentsch <
tr.17687@z991.linuxsc.com> writes:
[...]
Having 'constexpr' be classified as a storage class illustrates
how poorly thought out it is.
constexpr is not classified as a storage class. N3022, like earlier
editions, says there are four storage durations: static, thread,
automatic, and allocated.
The constexpr keyword is treated syntactically as a
storage-class-specifier, for the same reason that typedef is.
It doesn't specify a storage class, but it was a convenient way to
add it to the existing grammar without breaking anything.
Perhaps the syntactic category "storage-class-specifier" should have
been renamed when "typedef" was added to it.
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */