Skip to content

Commit

Permalink
Fix subroutine lookup for &-sigiled barewords to use 'find_sub_not_nu…
Browse files Browse the repository at this point in the history
…ll'.

This also means we can now refer to operators directly, as in &infix:<+>.
  • Loading branch information
pmichaud committed Feb 26, 2010
1 parent 94a6c44 commit 4ab4b82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Perl6/Actions.pm
Expand Up @@ -598,6 +598,9 @@ sub make_variable($/, $name) {
$past.viviself( sigiltype( $<sigil> ) );
$past.unshift(PAST::Var.new( :name('self'), :scope('lexical') ));
}
elsif $<sigil> eq '&' && !@name {
$past := PAST::Op.new(:pirop('find_sub_not_null__Ps'), $past.name);
}
}
$past
}
Expand Down

0 comments on commit 4ab4b82

Please sign in to comment.