Skip to content

Commit

Permalink
Eliminate a mention of $*PACKAGE-SETUP, which it's now time to start …
Browse files Browse the repository at this point in the history
…finally killing.
  • Loading branch information
jnthn committed May 1, 2011
1 parent b6e14db commit 811d9a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/NQP/Actions.pm
Expand Up @@ -1026,7 +1026,7 @@ class NQP::Actions is HLL::Actions {
$regex.name($name);
my $prefix_meth;

if pir::defined($*PACKAGE-SETUP) {
if $*PKGDECL && pir::can($*PACKAGE.HOW, 'add_method') {
# Add the actual method.
$*SC.pkg_add_method($*PACKAGE, 'add_method', $name, $regex, 0);

Expand Down
1 change: 1 addition & 0 deletions src/NQP/Grammar.pm
Expand Up @@ -25,6 +25,7 @@ grammar NQP::Grammar is HLL::Grammar {

my $*SCOPE := '';
my $*MULTINESS := '';
my $*PKGDECL := '';
my $*INVOCANT_OK := 0;
my $*RETURN_USED := 0;
my $*PACKAGE-SETUP;
Expand Down

0 comments on commit 811d9a5

Please sign in to comment.