in reply to Re^3: Help understanding object constructors (by Perl Best Practices book)
in thread Help understanding object constructors
Class::Std is, first off, not thread-safe. Second, if I inherit from Class::Std to create my own OO model based on it and I don't call SUPER in the DESTROY, there's a memory leak. (It's pathologically idiotic, but it's there.)
My benchmark numbers are simple ones from playing with it and what I've seen reported. I will gladly stand corrected given the responses I received.
As for subclassing, Damian has tried to work around the problems when two attributes are declared with the same name in the same hierarchy. But, that's still a problem. While you and I both know that it's a problem inherent to inheritance and composition in general, people cite inside-out objects as a way of avoiding hashkey clashes (which it is), then conclude that it's a way of avoiding attribute clashes (which it isn't). I was merely making that point explicit.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Help understanding object constructors (by Perl Best Practices book)
by Perl Mouse (Chaplain) on Nov 08, 2005 at 09:50 UTC | |
by dragonchild (Archbishop) on Nov 08, 2005 at 13:18 UTC |