in reply to Re: Using SUPER in dynamically generated subs
in thread Using SUPER in dynamically generated subs

I'm not sure why you think this is "a problem".

This is the only sensible way for it to work.

Was that sarcasm? The current algorithm has some bizarre fetish for static code, which is a bit odd to encounter in a dynamic language with late binding everywhere else. It makes calling the parent method from methods defined in roles very difficult, for example.

A working algorithm would search for a possible parent method in the list of MRO candidates after the current point of call. Note that this is sort of pretty much exactly like SUPER does.

  • Comment on Re^2: Using SUPER in dynamically generated subs