在 2020/5/29 18:35, 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++. > > Andreas. >
They are not the same thing. When applied on an expression, C++ `decltype()` may yield a reference type, but GCC's `typeof()` doesn't. -- Best regards, LH_Mouse
signature.asc
Description: OpenPGP digital signature