4 ms·
I imagine this is about tgmath.h. I've found the use of the word generic a bit misleading there.
by isaachier 8y ago
I imagine this is about tgmath.h. I've found the use of the word generic a bit misleading there.
- cygx 8y agoNo, it's very likely about _Generic. <tgmath.h> was added to C99 in an attempt to steal Fortran mindshare, ie making numerics and scientific computing less cumbersome (the same is true for other features, eg complex numbers or restrict). But in C99, it was still special-cased. The next standard C11 introduced _Generic so people could create their own type-generic interfaces.