Created
October 4, 2019 22:26
-
-
Save Whateverable/8bb07673e933cd2faba26607488a27f0 to your computer and use it in GitHub Desktop.
Whateverable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2019-10-04T21:42:33Z #perl6 <SmokeMachine> guifa maybe this could help you: `class NotDate is Date { method year(\SELF:) { do if SELF.VAR.of === ::?CLASS { "do something else" } else { SELF.Date::year } } }; my Date $d = NotDate.today; say $d.year; my NotDate $n = NotDate.today; say $n.year` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment