Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove a workaround I couldn't figure out why was needed; turns out i…
…t was just the buggy call from token subset.
  • Loading branch information
jnthn committed Apr 15, 2012
1 parent 64f70e8 commit 0227a99
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions src/Perl6/World.pm
Expand Up @@ -1433,24 +1433,22 @@ class Perl6::World is HLL::World {
# the last part of the name (e.g. for infix:<+>). Need to be a
# little cheaty when compiling the setting due to bootstrapping.
my @pairs;
if pir::isa($longname<colonpair>, 'ResizablePMCArray') {
for $longname<colonpair> {
if $_<circumfix> && !$_<identifier> {
my $value := $_.ast;
if $value<has_compile_time_value> {
@components[+@components - 1] := @components[+@components - 1] ~
(%*COMPILING<%?OPTIONS><setting> ne 'NULL' ??
':<' ~ ~$value<compile_time_value> ~ '>' !!
~$_);
}
else {
pir::die(~$_ ~ ' cannot be resolved at compile time');
}
for $longname<colonpair> {
if $_<circumfix> && !$_<identifier> {
my $value := $_.ast;
if $value<has_compile_time_value> {
@components[+@components - 1] := @components[+@components - 1] ~
(%*COMPILING<%?OPTIONS><setting> ne 'NULL' ??
':<' ~ ~$value<compile_time_value> ~ '>' !!
~$_);
}
else {
@pairs.push($_);
pir::die(~$_ ~ ' cannot be resolved at compile time');
}
}
else {
@pairs.push($_);
}
}
nqp::bindattr($result, LongName, '@!colonpairs', @pairs);

Expand Down

0 comments on commit 0227a99

Please sign in to comment.