in reply to Re^8: Introducing Class::InsideOut
in thread Introducing Class::InsideOut
Ah. Quite right. If you setup ISA appropriately it will still work. Still reblessing an already initialised object seems far more evil than the coupling of creation/initialisation it's trying to avoid. Not something I'd expect if I was reading the code.
If you want to inherit from a foreign class in this particular way (substituting the foreign object for the standard undefined scalar), reblessing must be expected. Apart from esthetic objections I don't see a big problem with that.
Anno
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Introducing Class::InsideOut
by adrianh (Chancellor) on Feb 19, 2006 at 09:54 UTC | |
by Anno (Deacon) on Feb 19, 2006 at 13:53 UTC | |
by adrianh (Chancellor) on Feb 19, 2006 at 14:51 UTC |