Re:Improving _Generic in C2y
by Conscat on Sunday August 04, 2024 @07:44PM
(#41157079)
Clang, as a non-standard feature, allows you to put a type-id into `_Generic` rather than an expression.
[ Parent
| on HN ]
I am being silenced for speaking the truth!
https://github.com/llvm/llvm-project/commit/12728e144994efe8...
https://clang.llvm.org/docs/LanguageExtensions.html#c11-gene...
Presumably because the article points that out.
Re:Improving _Generic in C2y
by downvotetruth on Sunday August 04, 2024 @11:18PM
(#41157886)
Just be sure to have no regrets.
Re:Improving _Generic in C2y
by plorkyeran on Sunday August 04, 2024 @10:25PM
(#41157671)
You're being downvoted for very clearly not reading the article as that extension and the fact that it got standardized is what the article is about.