in reply to Re: Is there a way to dynamically copy subroutine from one module to another?
in thread Is there a way to dynamically copy subroutine from one module to another?

In your solution I need to modify B class, but I really can't. Any modifications of classes parent to C will break all. And I can not do this modifications in source code, I need to do it at runtime.
  • Comment on Re^2: Is there a way to dynamically copy subroutine from one module to another?

Replies are listed 'Best First'.
Re^3: Is there a way to dynamically copy subroutine from one module to another?
by jeffa (Bishop) on Feb 12, 2011 at 18:21 UTC

    "Any modifications of classes parent to C will break all."

    If you have a good unit test suite then you should be able to make such a change and find what the change broke elsewhere and correct the problem. I would prefer to correct incorrect code rather than add more incorrect code to fix a symptom.

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)