Created
March 29, 2013 17:41
-
-
Save hoelzro/5272341 to your computer and use it in GitHub Desktop.
Attempt #2 to add postcircumfix:<( )> to Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
method postcircumfix:<( )>(Code:D: $self, |capture) { | |
my $dcself := nqp::decont($self); | |
my $code := nqp::getattr($dcself, Code, '$!do'); | |
$code(|capture); | |
} | |
=begin ErrorMessage | |
Can not get attribute '$!do' declared in class 'Code' with this object | |
=end ErrorMessage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment