Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
?"0" is now True per spec change
  • Loading branch information
labster committed Apr 10, 2015
1 parent 0354bb6 commit 82a1811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Str.pm
Expand Up @@ -55,7 +55,7 @@ my class Str does Stringy { # declared in BOOTSTRAP
}

multi method Bool(Str:D:) {
nqp::p6bool(nqp::chars($!value) && nqp::isne_s($!value,"0"));
nqp::p6bool(nqp::chars($!value));
}

multi method Str(Str:D:) { self }
Expand Down

0 comments on commit 82a1811

Please sign in to comment.