/lib/

devel'/>
path: root/doc/nims.rst
blob: 8e3638d62ad09febad58d9a12321ae19b6a9daeb (plain) (tree)
7
# bug #1679
import macros, tables, hashes
proc hash(v: NimNode): Hash = 4  # performance is for suckers
macro test(body: untyped) =
  var a = initCountTable[NimNode]()
  a.inc(body)

test:
  1 + 1
>
adf34082f
^
1
2
3
4
5
6
7
8