Skip to content

Commit

Permalink
Remove Mu.notdef
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Jul 30, 2010
1 parent aec9a59 commit 25b1cae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion CORE.setting
Expand Up @@ -356,7 +356,6 @@ PRE-INIT {
$tn ~ "()"
}
});
Mu.HOW.add-method("notdef", anon method notdef() { ! self.defined });
Mu.HOW.add-method("so", anon method so() { self.Bool });
Mu.HOW.add-method("not", anon method not() { ! self.Bool });
Mu.HOW.add-method("RAWCREATE", anon method RAWCREATE is rawcall { Q:CgOp {
Expand Down
2 changes: 1 addition & 1 deletion test.pl
Expand Up @@ -308,7 +308,7 @@
my class Baz { our $x = 42; }
ok $Baz::x == 42, "and class";

ok $Cow::x.notdef, "package variables autoviv to undef";
ok !$Cow::x.defined, "package variables autoviv to undef";
$Cow::x = 51;
ok $Cow::x == 51, "but can still hold values";
}
Expand Down

0 comments on commit 25b1cae

Please sign in to comment.