summary refs log tree commit diff stats
path: root/compiler/lowerings.nim
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2015-05-13 22:32:10 +0200
committerAdam Strzelecki <ono@java.pl>2015-05-17 15:28:41 +0200
commit1d47617d1b72c642fac5543f38aa24330b0f9a19 (patch)
treede71d33b3adcc3264dcd5a84ff0b0ed35fc40cc6 /compiler/lowerings.nim
parent63f1e0327817b0e7abacc3c0214ea94980f5c2ea (diff)
downloadNim-1d47617d1b72c642fac5543f38aa24330b0f9a19.tar.gz
Macros: Introduce getType(t: typedesc): NimNode
Since typedesc are exception in macros and they are not implicitly converted to
NimNode on macro call, we need some means to perform such conversion on demand.

Fortunately it is as simple as declaring new magic "NGetType" proc with
typedesc parameter.

NOTE: Keeping actual macro exceptional behavior for typedesc is important,
since it allows passing typedesc macro parameter to other procs or macros
expecting type parameter. If typedesc parameter was implicitly converted, then
we would lost this ability.
Diffstat (limited to 'compiler/lowerings.nim')
0 files changed, 0 insertions, 0 deletions