Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix return value of take/take-rw.
  • Loading branch information
jnthn committed Nov 5, 2012
1 parent e472c9b commit ef70aad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/control.pm
Expand Up @@ -47,13 +47,14 @@ my &return := -> | {
my &take-rw := -> | {
my $parcel :=
&RETURN-PARCEL(nqp::p6parcel(pir::perl6_current_args_rpa__P(), Nil));
THROW($parcel, pir::const::CONTROL_TAKE)
THROW($parcel, pir::const::CONTROL_TAKE);
$parcel
};
my &take := -> | {
my $parcel :=
&RETURN-PARCEL(nqp::p6parcel(pir::perl6_current_args_rpa__P(), Nil));
THROW(nqp::p6recont_ro($parcel),
pir::const::CONTROL_TAKE)
THROW(nqp::p6recont_ro($parcel), pir::const::CONTROL_TAKE);
$parcel
};

my &last := -> | {
Expand Down

0 comments on commit ef70aad

Please sign in to comment.