Last active
January 2, 2016 07:08
-
-
Save gradha/8267759 to your computer and use it in GitHub Desktop.
Because we can
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
| template usethis(v, e: expr): stmt {.immediate.} = | |
| block: | |
| using v | |
| e | |
| when isMainModule: | |
| var a, s = "kill it" | |
| usethis(s): | |
| add(" with fire") | |
| usethis(a): | |
| add(" with water") | |
| echo a | |
| echo s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment