Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Stringification fixes in NQP World.
  • Loading branch information
jnthn committed Apr 14, 2013
1 parent f4d6baa commit 1a01251
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/NQP/World.nqp
Expand Up @@ -154,16 +154,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 1a01251

Please sign in to comment.