![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re: ?Re: Change the parent of an instanceby muba (Priest) |
on May 11, 2004 at 18:34 UTC ( #352534=note: print w/replies, xml ) | Need Help?? |
What's wrong with reblessing then?
The variable keeping track of the actual type might be a good idea, but many of the methods will then look like
because the two share a lot, although they hardly share anything. Update: I have not yet thought about re-blessing. I think it's a good idea, worthwhile trying but if you say it's bad (or at least, will suck) I'll be glad to know why, just to find out if re-blessing is what I want.
In Section
Seekers of Perl Wisdom
|
|