Re:Metaprogramming custom control structures in C (2012)
by naasking on Sunday July 11, 2021 @11:02AM
(#27801370)
Neat, I actually prototyped something like this a few years ago to see how closely I could reproduce parametric polymorphism in C using macros, and it ends up looking a lot like Ada generic packages. The only difference from your style is that I have a "clever" hack to support generic-functions as well and the error messages preserve those names, so your example from github would look something like this:
I really should finish that writeup some day.
[ Parent
| on HN ]
There are no comments on this comment yet.