in reply to Re: RFC: Alter - Perl extension for Alter Ego Objects
in thread RFC: Alter - Perl extension for Alter Ego Objects
You can tell them to behave like this or that, merely by blessing them into the package which is needed at the time.
Re-blessing isn't really involved in accessing alter egos. It's the package the call to ego() is compiled into that determines the class whose ego is seen. That will normaly be the right one when a class compiles its accessors.
Anno
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: RFC: Alter - Perl extension for Alter Ego Objects
by diotalevi (Canon) on Jul 02, 2007 at 14:31 UTC | |
by Anno (Deacon) on Jul 02, 2007 at 15:39 UTC |