Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Put in goto NYI stub
  • Loading branch information
lizmat committed May 28, 2015
1 parent 08b0e97 commit 014597e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/Label.pm
Expand Up @@ -20,9 +20,8 @@ my class Label {
$!name
}

method leave(*@) {
X::NYI.new(:feature("{self.^name}.leave()")).throw;
}
method goto(*@) { X::NYI.new(:feature("{self.^name}.goto()")).throw }
method leave(*@) { X::NYI.new(:feature("{self.^name}.leave()")).throw }

multi method gist(Label:D:) {
my $is-win := $*DISTRO.is-win;
Expand All @@ -37,7 +36,6 @@ my class Label {

method Int() { nqp::where(nqp::decont(self)) }

# XXX method goto
method next() {
my Mu $ex := nqp::newexception();
nqp::setpayload($ex, nqp::decont(self));
Expand Down
3 changes: 3 additions & 0 deletions src/core/control.pm
Expand Up @@ -75,6 +75,9 @@ multi sub take(|) {
}
#?endif

proto sub goto(|) { * }
multi sub goto(Label:D \x) { x.goto }

proto sub last(|) { * }
multi sub last() { THROW-NIL(nqp::const::CONTROL_LAST) }
multi sub last(Label:D \x) { x.last }
Expand Down

0 comments on commit 014597e

Please sign in to comment.