Skip to content

Instantly share code, notes, and snippets.

@fowlmouth
Created September 14, 2012 04:05
Show Gist options
  • Save fowlmouth/3719721 to your computer and use it in GitHub Desktop.
Save fowlmouth/3719721 to your computer and use it in GitHub Desktop.
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