Skip to content
Browse files

Remove support for "will catch" and "will control", as per recent spec

  • Loading branch information...
1 parent 9dd34f3 commit 54c99847631c4be404bad277919c2576f861a32a @lizmat lizmat committed
Showing with 1 addition and 13 deletions.
  1. +1 −13 src/core/Variable.pm
View
14 src/core/Variable.pm
@@ -65,7 +65,7 @@ multi trait_mod:<will>(Variable:D $v, $block, |c ) {
expected => ('begin check final init end',
'enter leave keep undo',
'first next last pre post',
- 'catch control compose'),
+ 'compose'),
);
}
multi trait_mod:<will>(Variable:D $v, $block, :$begin! ) {
@@ -118,18 +118,6 @@ multi trait_mod:<will>(Variable:D $v, $block, :$pre! ) {
multi trait_mod:<will>(Variable:D $v, $block, :$post! ) {
$v.block.add_phaser('POST', $block)
}
-multi trait_mod:<will>(Variable:D $v, $block, :$catch! ) {
- $v.throw( 'X::Comp::NYI',
- feature => "Variable trait 'will catch {...}'",
- );
-# $v.block.add_phaser('CATCH', $block) # doesn't work :-(
-}
-multi trait_mod:<will>(Variable:D $v, $block, :$control! ) {
- $v.throw( 'X::Comp::NYI',
- feature => "Variable trait 'will control {...}'",
- );
-# $v.block.add_phaser('CONTROL', $block) # doesn't work :-(
-}
multi trait_mod:<will>(Variable:D $v, $block, :$compose! ) {
$v.throw( 'X::Comp::NYI',
feature => "Variable trait 'will compose {...}'",

0 comments on commit 54c9984

Please sign in to comment.
Something went wrong with that request. Please try again.