Last active
August 29, 2015 14:13
-
-
Save Ke-/61aad4c4fe97b51ae9ba to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // Cache method result on a thread level | |
| define whatmethod => { | |
| return givenblock->methodname | |
| } | |
| define whattype => { | |
| return givenblock->self->type | |
| } | |
| define test_type => type { | |
| public apple => whatmethod => { | |
| return 'pie' | |
| } | |
| public orange => whattype => { | |
| return 'pie' | |
| } | |
| } | |
| test_type->orange | |
| '.' | |
| test_type->apple |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment