|
"virtual method" is really not a concept that makes sense in dynamic languages.
On Wed, Feb 26, 2014 at 9:50 AM, Andrew Starks <andrew.starks@trms.com> wrote:Yes, that's exactly what they are; the object carries references to
> I think that I don't understand "virtual functions" in this context.
> My understanding was that they are functions that can be redefined by
> classes that are inheriting from the base class that declared it.
functions which are resolved at call time (in Lua by table lookup, in
C++ by VMT slot lookup). The key point is that indirection is
involved.
"virtual method" is really not a concept that makes sense in dynamic languages.