Skip to content

Commit

Permalink
Add missing stringification.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Apr 14, 2013
1 parent 4c3618d commit 31ea5f0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions nqp-src/NQP.pm
Expand Up @@ -158,16 +158,17 @@ class NQP::World is HLL::World {
# Install symbol immediately.
my $target := $package;
for @sym {
if nqp::existskey($target.WHO, $_) {
$target := nqp::atkey($target.WHO, $_);
my $part := ~$_;
if nqp::existskey($target.WHO, $part) {
$target := nqp::atkey($target.WHO, $part);
}
else {
my $pkgtype := nqp::existskey(%*HOW, 'package')
?? nqp::atkey(%*HOW, 'package')
!! nqp::atkey(%*HOW, 'knowhow');
my $pkg := $pkgtype.new_type(:name($_));
my $pkg := $pkgtype.new_type(:name($part));
$pkg.HOW.compose($pkg);
$target := nqp::bindkey($target.WHO, $_, $pkg);
$target := nqp::bindkey($target.WHO, $part, $pkg);
}
}
($target.WHO){$name} := $obj;
Expand Down

0 comments on commit 31ea5f0

Please sign in to comment.