in reply to Re: replace object methods at runtime in thread replace object methods at runtime
Thanks, sounds interesting this prototype objects. Quick view of the source reveals that in this manner can be defined new methods but I doubt that could be replaced already existing ones. The solution is to make some kind of dispatch table indexed by id of the object and method and than create subs in AUTOLOAD. But I really doubt that the new method could shadow the already existing method.
For now I think to just clean the double dispatch solution that I already have.
|