3 ms·
GCC and Clang(since 2016) have "__auto_type" extension for C which does a similar thing. https://gcc.gnu.org/onlinedocs/gcc/Typeof.html https://gcc.gnu.org/onli
by FrozenVoid 10y ago
GCC and Clang(since 2016) have "__auto_type" extension for C which does a similar thing.
https://gcc.gnu.org/onlinedocs/gcc/Typeof.html https://gcc.gnu.org/onlinedocs/gcc/Typeof.html
- mikeash 10y agoVery nice! I like using `auto` when writing C++ and miss it when writing Objective-C. I could use Objective-C++, of course, but that has its own problems. I'll have to keep this in mind.