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
In reply to Re: Unlimited chaining (is there a way to detect this?) (Foo::bar)
by tye
in thread Unlimited chaining (is there a way to detect this?)
by Burak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |