Two new proposals to the upcoming C2X standard

Liu Hao lh_mouse@126.com
Fri May 29 14:23:04 GMT 2020


在 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20200529/39d81f8c/attachment.sig>


More information about the Gcc mailing list