Forked from akiradeveloper/gist:45d1c5874b29d32e039d
Last active
August 29, 2015 14:16
-
-
Save fowlmouth/dc11f21ebd280be7f0b2 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
import macros | |
macro mac(n: expr): expr = | |
return quote do: | |
(proc(): int = | |
`n`.int) | |
template samething(n): expr = | |
(proc (): int = n.int) | |
echo mac(10)() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment