Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[common] Add a NQPCode with a leave method.
  • Loading branch information
jnthn committed Oct 21, 2010
1 parent c788c81 commit 3c156f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common/NQP/NQPSetting.pm
Expand Up @@ -134,6 +134,12 @@ knowhow KnowHOWAttribute is repr('P6str') {
}
}

knowhow NQPCode is repr('RakudoCodeRef') {
method leave($with) {
nqp::leave_block(self, $with)
}
}

## XXX Need coercive Any fallbacks too.

proto sub &infix:<==>($x, $y) {
Expand Down

0 comments on commit 3c156f0

Please sign in to comment.