Two new proposals to the upcoming C2X standard
Florian Weimer
fweimer@redhat.com
Fri May 29 13:28:20 GMT 2020
* Andreas Schwab:
> On Mai 29 2020, David Brown wrote:
>
>> So my counter-proposal for you would be to recommend gcc's "typeof" as a
>> new keyword (spelt "_Typeof", with "typeof" as a macro in <stdtypeof.h>,
>> in solid C tradition).
>
> Or call it _Decltype/decltype, following C++.
But please only if it cannot be applied to types. (__typeof works for
both types and expressions, decltype only for expressions.)
Thanks,
Florian
More information about the Gcc
mailing list