Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only initialize $Pair when we need it
  • Loading branch information
lizmat committed Oct 8, 2015
1 parent f3aace1 commit c7b6128
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Perl6/World.nqp
Expand Up @@ -1260,8 +1260,6 @@ class Perl6::World is HLL::World {
%info<sigil> := $sigil;
my $subset_name;

my $Pair := $*W.find_symbol(['Pair']);
my $Bool := $*W.find_symbol(['Bool']);
if @value_type {
my $smiley;

Expand Down Expand Up @@ -1294,6 +1292,7 @@ class Perl6::World is HLL::World {
# set up subset info
if $smiley && $smiley ne '_' {
$subset_name := ~@value_type[0];
my $Pair := $*W.find_symbol(['Pair']);
@post.push($Pair.new('defined', $smiley eq 'D' ?? 1 !! 0));
}
@value_type[0] := nqp::decont(@value_type[0].ast);
Expand Down

0 comments on commit c7b6128

Please sign in to comment.