4 ms·
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
by schrototo 15y ago
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/ http://libdispatch.macosforge.org/
[2] http://gcc.gnu.org/onlinedocs/gcc/Type-Attributes.html http://gcc.gnu.org/onlinedocs/gcc/Type-Attributes.html