Actually, the eval is trapping the error. When I put a die $@ if $@; after the eval, it propagates the same error.
Duh, you're right. :-) I was testing for @$ instead of $@. /me slaps forehead.
The reason it works without Class::MethodMaker is (near as I can tell, anyway) that you're creating the sub in the same class for which you want to find the super class. In other words, it might be that if you wrote a third class that installs the method (in which SUPER is called) into the base class, it wouldn't work.
I think you're right. Could it possibly be that I've discovered a feature that is impossible for Perl? Nahh... probably I just haven't found the answer yet. :-)
Creating a simple test module that installs the SUPER-calling method into the example which doesn't use Class::MethodMaker would tell you if the issue is actually with using SUPER outside the base class, though, so that's maybe a good avenue to explore.
I'll give that a shot (not sure if I can do it, but I'll try).
-Dan
In reply to Re: Re3: Calling SUPER in MethodMaker-generated methods
by danb
in thread Calling SUPER in MethodMaker-generated methods
by danb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |