Sujet : Re: ({
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.c++Date : 21. Mar 2025, 20:27:59
Autres entêtes
Organisation : None to speak of
Message-ID : <87ldsyqj40.fsf@nosuchdomain.example.com>
References : 1 2
User-Agent : Gnus/5.13 (Gnus v5.13)
Paavo Helde <
eesnimi@osa.pri.ee> writes:
[...]
It appears the statement expressions are a gcc extension which does
not even compile in standard C++, and is probably not needed for
anything in C++ as there are better options like templated and inlined
functions.
In C there might be some usage case for it.
[...]
Statement expressions don't compile in *standard* C or C++.
gcc supports them as an extension for both C and C++ (and Objective-C).
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */