Skip to content

Instantly share code, notes, and snippets.

@zah
Created August 11, 2011 21:00
Show Gist options
  • Save zah/1140761 to your computer and use it in GitHub Desktop.
Save zah/1140761 to your computer and use it in GitHub Desktop.
proc testConcat(a: string, b: string): string {.compileTime pure.} =
return a & b
const X = testConcat("test", "me")
proc test =
when len(X) > 2:
echo "big"
else:
echo "small"
test()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment