R
Roland Pibinger
Unfortunately, your approach precludes automatic function inlining.
No encapsulation means no OO. You can't have both at the same time
This would preclude any explicit call to function actualShape_draw.
An optimizing C++ compiler will elide the virtual {messenger} function
and call the actual function directly if it can determine the actual
type at compile time.
But isn't polymorphism the point of the whole exercise?
Best regards,
Roland Pibinger