in reply to Re: Why doesn't SUPER cause dead loop here?
in thread Why doesn't SUPER cause dead loop here?

Let's focus on step 2

shift->SUPER::new(@_)

Here the result of shift should be son,right?

then shift->SUPER::new should still call father::new,right?

Replies are listed 'Best First'.
Re^3: Why doesn't SUPER cause dead loop here?
by ikegami (Patriarch) on Sep 02, 2011 at 02:52 UTC

    No, father is not in @father::ISA or a descendant of the classes therein.

    SUPER relates to the class in which the code using it is compiled. It doesn't involve the invocant.

    By the way, what's a dead loop? Is that the same thing as an infinite loop?

      Yes, I actually means infinite loop~