Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
start to wire up action methods for sigilless params
sub f(\b) { say b }; f 42   now works
  • Loading branch information
moritz committed Aug 13, 2012
1 parent 53c7856 commit e6c08fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Perl6/Actions.pm
Expand Up @@ -3529,6 +3529,10 @@ class Perl6::Actions is HLL::Actions {
elsif $*W.is_pseudo_package(@name[0]) {
$past := $*W.symbol_lookup(@name, $/);
}
elsif +@name == 1 && $*W.is_name(@name) && !$*W.is_type(@name) {
# it's a sigilless param or variable
$past := make_variable_from_parts($/, @name, '', '', @name[0]);
}
else {
$past := instantiated_type(@name, $/);
}
Expand Down

0 comments on commit e6c08fa

Please sign in to comment.