Skip to content

Commit

Permalink
Remove $*MAIN-ALLOW-NAMED-ANYWHERE
Browse files Browse the repository at this point in the history
It was unspecced and temporarily added to transition users of old panda.
  • Loading branch information
zoffixznet committed Sep 28, 2017
1 parent 01d4939 commit 9cb4b16
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/Main.pm
Expand Up @@ -10,9 +10,8 @@ my sub MAIN_HELPER($retval = 0) {
my $m = callframe(1).my<&MAIN>;
return $retval unless $m;

my %SUB-MAIN-OPTS := %*SUB-MAIN-OPTS // {};
my $no-named-after =
!(%SUB-MAIN-OPTS<named-anywhere> // $*MAIN-ALLOW-NAMED-ANYWHERE);
my %SUB-MAIN-OPTS := %*SUB-MAIN-OPTS // {};
my $no-named-after := nqp::isfalse(%SUB-MAIN-OPTS<named-anywhere>);

sub thevalue(\a) {
((my $type := ::(a)) andthen Metamodel::EnumHOW.ACCEPTS($type.HOW))
Expand Down

0 comments on commit 9cb4b16

Please sign in to comment.