top | item 18217043

(no title)

isaachier | 7 years ago

I imagine this is about tgmath.h. I've found the use of the word generic a bit misleading there.

discuss

order

cygx|7 years ago

No, 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.