Re:Object-oriented design patterns in Linux kernel, part 1
by schrototo on Thursday June 02, 2011 @10:56AM
(#2612214)
Another interesting way to achieve object-orientedness in C can be found in libdispatch [1], the user space implementation of Apple's Grand Central Dispatch API. It makes use of the transparent_union GCC attribute [2], among other things, and is pretty heavy on macro usage. Cool stuff.
[1] http://libdispatch.macosforge.org/
[2] http://gcc.gnu.org/onlinedocs/gcc/Type-Attributes.html