3 ms·
One day I discovered that I'd hand-coded a vtable in order to allow polymorphism in structures of function pointers. I've found myself in a similar situation.
by nitrogen 17y ago
One day I discovered that I'd hand-coded a vtable in order to allow polymorphism in structures of function pointers.
I've found myself in a similar situation. I am writing embedded software which needs to be as portable as possible, but I've found myself starting to implement polymorphism and objects in C. I am tempted to ignore platforms that lack a C compiler and switch to C++, but the reduced predictability of runtimes has kept me from doing so thus far.