Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add some default values.
There's no NQPMu yet in the MOP classes, so we need to be careful about
having these.
  • Loading branch information
jnthn committed Oct 15, 2012
1 parent ffd25c9 commit 5db85ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/how/NQPClassHOW.pm
Expand Up @@ -61,7 +61,7 @@ knowhow NQPClassHOW {
##

# Creates a new instance of this meta-class.
method new(:$name) {
method new(:$name = '<anon>') {
my $obj := nqp::create(self);
$obj.BUILD(:name($name));
$obj
Expand Down Expand Up @@ -576,7 +576,7 @@ knowhow NQPClassHOW {
$!trace_depth
}

method attributes($obj, :$local) {
method attributes($obj, :$local = 0) {
my @attrs;
if $local {
for %!attributes {
Expand Down

0 comments on commit 5db85ab

Please sign in to comment.