in reply to Re^4: Can't locate object method- Issue
in thread Can't locate object method- Issue
This sounds like horribly bad design.
You haven't told us what problem you are trying to solve by this approach, but from my perspective, it looks as if your approach would be far better served by an object A that has another object B, which gets removed or replaced by a third object C if its behavirour needs to change:
A -> B # Change behaviour: A -> C
Maybe, B and C can implement some roles, but the interface of A should remain identical and delegate to its worker, B or C.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Can't locate object method- Issue
by jdporter (Paladin) on Sep 29, 2013 at 02:30 UTC | |
by Corion (Patriarch) on Oct 01, 2013 at 09:20 UTC | |
by jdporter (Paladin) on Oct 01, 2013 at 11:59 UTC | |
by Corion (Patriarch) on Oct 01, 2013 at 12:03 UTC |