[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Is there plan for __auto_type support

From: ntysdd
Subject: [Tinycc-devel] Is there plan for __auto_type support
Date: Fri, 12 Aug 2022 08:48:15 +0800

__auto_type is a useful gnu extension, very useful for writing safe macros.

Its advantage over typeof:

1. instead of typeof(expr) _x = (expr), now __auto_type _x = (expr). `expr' now only appears once, avoid potension exponential expansion.

2. when writing __auto_type x = y; `x' is put in scope only after the semicolon, no danger of name collision.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]