in reply to The need to rebless (was: Informal Poll: Traits)
in thread Informal Poll: why aren't you using traits?
When you have a generic proxy object like Object::Realize::Later, which more or less implements lazyness for method calls, it is quite convenient to have the object change class after it has been realized. Otherwise, lots of (brain-dead, I admit) checks fail when they ask UNIVERSAL::isa($obj,'foo');. Of course one could circumvent this problem with multiple inheritance or by writing a specialized ::Proxy class for every class to be lazy ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Informal Poll: Traits (Long Post Warning!)
by chromatic (Archbishop) on Nov 21, 2005 at 08:07 UTC | |
|
Re^9: Informal Poll: Traits (Long Post Warning!)
by dragonchild (Archbishop) on Apr 18, 2006 at 12:21 UTC | |
by Corion (Patriarch) on Apr 18, 2006 at 14:05 UTC | |
by dragonchild (Archbishop) on Apr 18, 2006 at 14:07 UTC |