in reply to Re^2: $object->UnrelatedPackage::some_subroutine()
in thread $object->UnrelatedPackage::some_subroutine()
So I should stop using SUPER and should definitely avoid TheDamian's NEXT?
Of course not.
SUPER:: is part of perl's OO system, and a built in pseudo-package. So as far as I am concerned, it is a different story.
As for NEXT, thats up to you if you want to use it. No doubt that TheDamian knows what he is doing, but that's a pretty crazy module. Personally I just try to avoid designing anything which would need it in the first place.
However, what the OP was actually talking about was basically abusing a hole in perl's module/object system (at least thats what I see it as). The OP is actually talking about bascially using this to allow any random blessed object to become the first argument in a function, not a method. This is different from the controlled method dispatching of SUPER and NEXT.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: $object->UnrelatedPackage::some_subroutine()
by tilly (Archbishop) on Feb 19, 2005 at 02:55 UTC | |
by stvn (Monsignor) on Feb 19, 2005 at 03:02 UTC | |
by tilly (Archbishop) on Feb 19, 2005 at 03:12 UTC |