Skip to content

Commit

Permalink
[core/Bool] Made +False and +True return Ints.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodi Arfer authored and Kodi Arfer committed Nov 30, 2010
1 parent 82f3de0 commit 1eae0c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/Bool.pm
Expand Up @@ -4,6 +4,8 @@ augment class Bool does Abstraction {

method perl() { self ?? "Bool::True" !! "Bool::False"; }

method Numeric() { self ?? 1 !! 0 }

method Str() { $.perl() }

method Stringy() { self ?? "True" !! "False"; }
Expand Down

0 comments on commit 1eae0c4

Please sign in to comment.