Archives
-
Alternative idioms for inheritance in C
C doesn't really support inheritance, but it offers alternative ways to mimic inheritance. Read More
-
Implementing a derived class vtbl in C
There's more than one way to implement a derived class vtbl in C. Dan looks at two alternatives. Read More
-
Implementing pure virtual functions
Implementing pure virtual functions as null pointers is simple but probably not robust enough for... Read More
-
Pure virtual functions
Pure virtual functions provide a way to avoid defining base class member functions that have no... Read More
-
Initializing derived polymorphic objects
Each class in a hierarchy of polymorphic objects should have a function that initializes its vptr... Read More
-
Initializing polymorphic objects
Virtual function calls work properly only if the vptrs and vtbls are initialized properly. C++ does ... Read More
-
Impure thoughts
Once more unto the breach, Dan tries to dispel the notion that C++ is a purely object-oriented... Read More
-
Virtual functions in C
Although C doesn’t provide native support for virtual functions, you can emulate virtual functions... Read More
-
Storage layout for polymorphic objects
Adding at least one virtual function to a class alters the storage layout for all objects of that... Read More
-
It's not the processor
Although over two thirds of embedded systems developers are programming 32- and 64-bit processors, C ... Read More


