Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

method combinations :around :before :after #98

Open
rurban opened this issue Dec 24, 2015 · 0 comments
Open

method combinations :around :before :after #98

rurban opened this issue Dec 24, 2015 · 0 comments
Assignees

Comments

@rurban
Copy link
Member

rurban commented Dec 24, 2015

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.

@rurban rurban self-assigned this Dec 24, 2015
@rurban rurban added this to the v5.24.0 milestone Dec 24, 2015
@rurban rurban mentioned this issue Dec 24, 2015
@rurban rurban modified the milestones: v5.26.0, v5.24.0 May 10, 2016
@rurban rurban removed this from the v5.26.0c milestone Mar 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant