3 ms·
Yeah, I used to spend a lot of time reinventing OOP in C back in the days. Part of the problem is I learned C++ long before I took a serious look at C. These d
by codr7 7y ago
Yeah, I used to spend a lot of time reinventing OOP in C back in the days. Part of the problem is I learned C++ long before I took a serious look at C.
These days I definitely prefer embedding/baseof since it's more explicit.
When I need polymorphism, stuffing some function pointers in a struct usually works well enough.