Created
April 18, 2009 11:07
-
-
Save masak/97553 to your computer and use it in GitHub Desktop.
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
my $invocant := $( $/[0] ); | |
my $call := $( $/[1] ); | |
# [...] | |
# We only want to evaluate invocant once; stash it in a register. | |
$call.unshift(PAST::Op.new( | |
:pasttype('bind'), | |
PAST::Var.new( | |
:name('detemp'), | |
:scope('register'), | |
:isdecl(1) | |
), | |
$invocant | |
)); | |
# Question: if I know that $invocant will be '$_', how do I change the above? | |
# Does the string '$_' suffice? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment