Skip to content

Commit

Permalink
Make &-sigiled variables act like scalars also (they don't flatten).
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Feb 27, 2010
1 parent 7680ab4 commit 43e22db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Actions.pm
Expand Up @@ -769,7 +769,7 @@ sub declare_variable($/, $past, $sigil, $twigil, $desigilname, $trait_list) {
my $vivipast := PAST::Op.new( $cont, 'rw', $true, :pirop('setprop'));

# If it's a scalar, mark it as scalar (non-flattening)
if $sigil eq '$' {
if $sigil eq '$' || $sigil eq '&' {
$vivipast := PAST::Op.new($vivipast,'scalar',$true,:pirop('setprop'));
}

Expand Down

0 comments on commit 43e22db

Please sign in to comment.