in reply to Re^3: $object->UnrelatedPackage::some_subroutine()
in thread $object->UnrelatedPackage::some_subroutine()
Personally I, like you, use SUPER:: and not NEXT::. But that's because I avoid multiple inheritance, and so have no reason to use NEXT::. If I used multiple inheritance, I would likely reverse and use NEXT:: instead of SUPER:: because SUPER:: does something that is fairly obviously the Wrong Thing to do.
I agree with you that there is a definite possibility of abuse in this feature. I'm even inclined to believe that most people who're using it are more likely to cause themselves grief than they are to benefit significantly. However many abusible features in Perl are also capable, when used in a disciplined way, of helping make code saner. For that reason I'm somewhat hesitant to say, "Never do this." I might be inclined to discourage people from using a feature. But I generally hesitate before saying never to do so.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: $object->UnrelatedPackage::some_subroutine()
by stvn (Monsignor) on Feb 19, 2005 at 03:02 UTC | |
by tilly (Archbishop) on Feb 19, 2005 at 03:12 UTC |