Nim/lib/core
Zahary Karadjov bdcb729597 Better support for treating templates and macros as symbols.
This allows you to pass a template or a macro to another macro
which can then inspect the implementation of the former template/macro
using `getImpl`.

Since templates can be freely redefined, this allows you to treat
their symbols as compile-time variables that have lexical scope.
A motivating PoC example for a logging library taking advantage of
this will be provided in the next commit.

Implementation details:

* The name of a template or a macro will be consider a symbol if
  the template/macro requires parameters

* For parameterless templates/macros, you can use `bindSym`, which
  was extended to also work outside of compile-time procs.
2018-05-07 09:37:49 +02:00
..
allocators.nim New runtime: fix allocator inheritable (#7046) 2018-01-09 11:22:29 +01:00
locks.nim Disable stacktrace in locks (#6128) 2017-07-21 17:20:46 +02:00
macros.nim Better support for treating templates and macros as symbols. 2018-05-07 09:37:49 +02:00
refs.nim new runtime: added typelayouts.nim 2018-01-04 15:59:03 +01:00
rlocks.nim Fix `XDeclaredButNotUsed` warning when locks or rlocks module is used 2016-03-31 16:47:55 +06:00
seqs.nim C codegen: preparations for different seq and string implementations 2018-04-03 10:25:20 +02:00
strs.nim C codegen: preparations for different seq and string implementations 2018-04-03 10:25:20 +02:00
typeinfo.nim make the tester compile again 2017-09-25 14:52:52 +02:00
typelayouts.nim new runtime: added typelayouts.nim 2018-01-04 15:59:03 +01:00