cperl
cperl copied to clipboard
method combinations :around :before :after
no more.
with the natural attributes syntax and not with the Moose or Aspect syntax.
only for methods, not for subroutines. so forget about AspectJ monkey patching everything. we follow CLOS, only hook into the method dispatch, with NEXT and SUPER. We will not make entersub even slower as it already is.
method calc ($what) :before {}
store it in CV (as 3 body ptrs), cache it in the METHOP.
depends on landing #16 multi first. so only eligible within class {} blocks to enforce compile-time lexical behavior. https://doc.perl6.org/language/objects#Methods "Methods are declared with the method keyword inside a class body."
note that method combinations where left out in perl6.