5 ms·
>Dynamic dispatch is not terribly overloaded. It's dispatching based on run-time information instead of just compile-time information. According to the above d
by ukj 5y ago
>Dynamic dispatch is not terribly overloaded. It's dispatching based on run-time information instead of just compile-time information.
According to the above definition C++ does not have dynamic dispatch!
The vtable in C++ is generated at compile time and used at runtime. It's immutable at runtime. That means it is NOT dynamic!
https://en.wikipedia.org/wiki/Virtual_method_table#Comparison_with_alternatives https://en.wikipedia.org/wiki/Virtual_method_table#Compariso...
"Virtual method tables also only work if dispatching is constrained to a known set of methods, so they can be placed in a simple array built at compile time."
Like, I don't care how you use words, but you (and everyone) are using "dynamic" to speak about a statically-behaving system!