Yes, that would definitely work. The other alternative which is cleaner
is to detect when I'm invoking a virtual method defined in a base class
and generate code that casts the object pointer to the base class type
before invoking the method. I've got sufficient type information to do
that, it's just a matter of putting in the effort to implement it...
-Mike
Speaking strictly as a C++ guy wouldn't what you're proposing be a giant
no-op? Isn't the whole point of virtual methods to give you the ability to
call derived class methods when using a base class 'this' pointer? So
wouldn't casting from a derived type 'this' pointer to a base type 'this'
pointer and then calling a virtual method be the same as just using the
derived type?
J.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/