in reply to Subroutine attributes for solving crosscutting problems

Good idea. It would be even nicer if it were easier to splice optrees for subs together, but that requires cloning and that's a bit tricky.

I do have one suggestion. You don't have to go through that symbolic reference mess in your handler; the third argument is the referent itself -- the coderef here.

  • Comment on Re: Subroutine attributes for solving crosscutting problems

Replies are listed 'Best First'.
Re^2: Subroutine attributes for solving crosscutting problems
by friedo (Prior) on Sep 08, 2006 at 00:52 UTC

    You don't have to go through that symbolic reference mess in your handler; the third argument is the referent itself -- the coderef here.

    Hah. Whenever I learn something new I always manage to overlook one obvious detail. :) Thanks for the idea.