Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make .dynamic return a Bool rather than some number
  • Loading branch information
lizmat committed Aug 19, 2013
1 parent ce2453d commit f0ee01d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/Array.pm
Expand Up @@ -93,7 +93,7 @@ class Array { # declared in BOOTSTRAP
}
method dynamic() {
my $d := $!descriptor;
nqp::isnull($d) ?? Mu !! $d.dynamic;
nqp::isnull($d) ?? Mu !! so $d.dynamic;
}

multi method perl(Array:D \SELF:) {
Expand Down
2 changes: 1 addition & 1 deletion src/core/Hash.pm
Expand Up @@ -83,7 +83,7 @@ my class Hash { # declared in BOOTSTRAP
}
method dynamic() {
my $d := $!descriptor;
nqp::isnull($d) ?? Mu !! $d.dynamic;
nqp::isnull($d) ?? Mu !! so $d.dynamic;
}

proto method delete(|) { * }
Expand Down
2 changes: 1 addition & 1 deletion src/core/Scalar.pm
Expand Up @@ -14,6 +14,6 @@ my class Scalar {
}
method dynamic() {
my $d := $!descriptor;
nqp::isnull($d) ?? Mu !! $d.dynamic;
nqp::isnull($d) ?? Mu !! so $d.dynamic;
}
}

0 comments on commit f0ee01d

Please sign in to comment.