Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
We run into code-gen issues for routines that evaluate to something v…
…oid; avoid (heh, get it) that.
  • Loading branch information
jnthn committed Jul 9, 2011
1 parent 2f5b530 commit 63e2719
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/core/EnumMap.pm
Expand Up @@ -44,7 +44,8 @@ my class EnumMap does Associative {
method STORE_AT_KEY(Str \$key, Mu \$value) {
pir::defined($!storage) ||
nqp::bindattr(self, EnumMap, '$!storage', pir::new__Ps('Hash'));
pir::set__2QsP($!storage, nqp::unbox_s($key), $value)
pir::set__2QsP($!storage, nqp::unbox_s($key), $value);
$value # XXX PAST bug, it seems; the 2 in the above sig isn't followed
}

method ARGLIST_FLATTENABLE() { $!storage }
Expand Down
4 changes: 2 additions & 2 deletions src/core/Exception.pm
Expand Up @@ -6,10 +6,10 @@ my class Exception {
}

method throw() {
pir::throw__vP($!ex)
pir::throw__0P($!ex)
}
method rethrow() {
pir::rethrow__vP($!ex)
pir::rethrow__0P($!ex)
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/core/GatherIter.pm
Expand Up @@ -70,7 +70,8 @@ class GatherIter is Iterator {
.yield (taken)
resume()
goto gather_done # should never get here
}
};
True
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/control.pm
Expand Up @@ -67,7 +67,7 @@ my &proceed := -> {
THROW(Nil, pir::const::CONTROL_CONTINUE)
}

sub die(*@msg) { pir::die(@msg.join('')) }
sub die(*@msg) { pir::die__0P(@msg.join('')) }

sub eval(Str $code, :$lang = 'perl6') {
my $caller_ctx := Q:PIR {
Expand Down

0 comments on commit 63e2719

Please sign in to comment.