Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I could patch SUPER to call $invocant->can( '__get_parents' ) before calling it in the eval, but this seems like a corner case. I'll think about it.

    • I thought about that a little bit myself. It's definitely a corner case, but it can (demonstratedly) be a pretty serious benefit. Then again, "can" is a lying jerk and it means more overhead for all the code that would've worked just fine otherwise...

      I think the best solution might just be for people to STOP USING AUTOLOAD... at least when it's not really the right (read: only) way to do something. This was clearly a gratuitous use of AUTOLOAD.

      If you patch SUPER, though, I won't mind one bit!

      --
      rjbs
      • Then again, "can" is a lying jerk and it means more overhead for all the code that would've worked just fine otherwise...

        People who don't override can when necessary are like people who don't check the return calls of system calls. Sure, you hope things will go right, but if you want to play nicely with the rest of the system, you ought to be a good neighbor.

        • People who override can when they think it necessary almost always get it wrong. But we've had this discussion before.

          • Yes, we have, and you're still wrong to suggest that people break the way Perl objects work because you don't think they're smart enough to do it right.

            I think we can all agree that AUTOLOAD is overused, and often poorly.