News for hackers. Stuff that matters.
Re:Generics in C without void* or macros – enabled by psychec by seamyb88 on Monday September 09, 2019 @10:13AM (#20918353)
Yeah, true. Although, the problem is lessened if properly abstracted away via opacity. MPFR (GNU multi-precision library) typedefs an array of size 1 holding its basic type, as opposed to just typedefing the struct of the basic type. This is (I think) purely so they don't have to put '&' in front of their "objects" when passing them around.

While I've great respect for the authors of that fantastic library, I only have this to say about the practice: Jeeesh!

There are no comments on this comment yet.