pass typedesc as NimNode to macros (#11400)

* change typedesc's design in macros

* Manual and changelog entry.

* add link to RFC
This commit is contained in:
Arne Döring 2019-06-05 09:17:04 +02:00 • committed by Andreas Rumpf
commit cb45527e37
6 changed files with 54 additions and 39 deletions

View file

@ -52,6 +52,12 @@
- With the exception of `uint` and `uint64`, conversion to unsigned types
are now range checked during runtime.
- Macro arguments of type `typedesc` are now passed in to the macro as
`NimNode` like every other type. Use either `typed` or
`static[typedesc]` for a behavior that is identical in new and old
Nim.
RFC: `Pass typedesc as NimNode to macros
<https://github.com/nim-lang/RFCs/issues/148>`_.
#### Breaking changes in the standard library