in reply to Re: Referring SUPER to superclass of object
in thread Referring SUPER to superclass of object
The problem the question has run across is the following. Suppose that class A inherits from B and C, and class B inherits from D. What the questioner needs to do is search for all of the ancestors of a method in the path (B, D, C). Unfortunately SUPER is only aware of the inheritance of the class, not the object, so if SUPER finds a method in B, then SUPER called from that method will miss D.
This limitation is documented (somewhat tersely) in perlobj, and the original question quotes that limitation.
|
|---|