Sujet : Re: C23 auto x C++ auto.
De : bluemanedhawk (at) *nospam* invalid.invalid (Blue-Maned_Hawk)
Groupes : comp.lang.cDate : 27. May 2024, 06:55:10
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <pan$4b490$fb350802$be410565$ed9732c3@invalid.invalid>
References : 1 2 3
User-Agent : Pan/0.154 (Izium; 517acf4)
David Brown wrote:
It would have been nice to see statement expressions included in C23, as
they have been in gcc for ages:
#define max(a,b) \
({ __auto_type _a = (a); \
__auto_type _b = (b); \
_a > _b ? _a : _b; })
As i understand it, WG14's plan is to eventually get lambdas into standard
C so as to unify statementexprs with Clang's Blocks and GCC's local
subroutines.
-- Blue-Maned_Hawk│shortens to Hawk│/blu.mɛin.dʰak/│he/him/his/himself/Mr.blue-maned_hawk.srht.siteThe world is made of quacks.