Skip to content

Instantly share code, notes, and snippets.

@hoelzro
Created March 29, 2013 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoelzro/5272341 to your computer and use it in GitHub Desktop.
Save hoelzro/5272341 to your computer and use it in GitHub Desktop.
Attempt #2 to add postcircumfix:<( )> to Code
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