Created
September 14, 2012 04:05
-
-
Save fowlmouth/3719721 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
template foo(): stmt = | |
var x = "hello" | |
echo x | |
foo() | |
echo(definedInScope(x)) | |
template dirtyfoo(): stmt {.dirty.}= | |
var x = "hello" | |
echo x | |
dirtyfoo() | |
if definedinscope(x): | |
echo "dirty boy dirty dirty dirty ", x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment