Object-InsideOut - Re: Polymorphism broken for foreign class inheritance

Posted on Fri Nov 9 17:49:55 2007 by jdhedden in response to 6426 (See the whole thread of 2)
Re: Polymorphism broken for foreign class inheritance
The problem is that OIO's AUTOLOAD subroutine handles the dispatching of foreign method calls using the internally held inherited object. As such, parent_call receives the internal MyParent object which, of course, doesn't know anything about the MyChild class.

I see what it is you're trying to do, but I can't think of a way to do it given OIO's foreign inheritance mechanism.

One suggestion is to try re-engineering the methods being called.

Otherwise, you might see if Class::InsideOut can do what you want.

Thanks for trying to use OIO. Sorry I couldn't be of more help.
Write a response