2 ms·
This is a nice article for anyone who wants to understand typical implementation of basic C++ features but in the end I'd say it makes the case for actually usi
by zwieback 12y ago
This is a nice article for anyone who wants to understand typical implementation of basic C++ features but in the end I'd say it makes the case for actually using C++ instead of reimplementing it in C.
If you do go the OOP-C route, one thing that's nice is that you can compose objects of different super types. In C++ an object belongs to one class of a hierarchy but in OOP-C it's conceivable that the vtable dispatches to a different mixt of virtual functions per object.
Also, nice trick with the #define T/#include __FILE__. Hadn't seen that before.