Aspect::Pointcut::Highest(3pm)

Aspect::Pointcut::Highest3pm

Pointcut for preventing recursive matching

Usage

  use Aspect;
  
  # High-level creation
  my $pointcut1 = highest;
  
  # Manual creation
  my $pointcut2 = Aspect::Pointcut::Highest->new;

Overview

For aspects including timers and other Aspect::Advice::Around-based advice, recursion can be significant problem.

The "highest" pointcut solves this problem by matching only on the highest invocation of a function. If the function is called again recursively within the first call, at any depth, the deeper calls will be not match and the advice will not be executed.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 5 times.

  1. 6.0
  2. 7
  3. 8–10
  4. 11
  5. 12
  6. 13

Authors

Adam Kennedy <[email protected]>

Marcel Grünauer <[email protected]>

Ran Eilam <[email protected]>

From libaspect-perl 1.04-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.