Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Implement 42.WHY
  • Loading branch information
lizmat committed Apr 20, 2014
1 parent 87a6833 commit 36d2580
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Int.pm
Expand Up @@ -14,6 +14,10 @@ my class Int does Real { # declared in BOOTSTRAP
ObjAt
);
}
method WHY(Int:D:) {
nextsame if self != 42;
"Life, the Universe and Everything";
}
multi method perl(Int:D:) {
self.Str;
}
Expand Down

0 comments on commit 36d2580

Please sign in to comment.