in reply to Unlimited chaining (is there a way to detect this?)
I too am unsure why you feel the need to detect / prevent this. But the first technique for doing that which pops into my head has not been mentioned yet:
sub Foo::bar { croak "bar() only meant for use from base class" }
or thereabouts. Of course, you've taken all of the meaning out of your class and method names so it is hard to "get" what your point is in such an abstract case.
- tye
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Unlimited chaining (is there a way to detect this?) (Foo::bar)
by Burak (Chaplain) on Jan 06, 2008 at 20:50 UTC |