Re: Custom pragma on type

2018-03-31 Thread doofenstein
Thanks for the reply, I created an issue on Github: [https://github.com/nim-lang/Nim/issues/7451](https://github.com/nim-lang/Nim/issues/7451)

Re: Custom pragma on type

2018-03-30 Thread cdome
Looks like a bug, type pragmas are not seen on the user side type User {.exportc, packed.} = object id: int import macros macro test(t: typedesc): untyped = echo t.getType()[1].symbol.getImpl.treerepr test(User) gives

Custom pragma on type

2018-03-30 Thread doofenstein
Is there a way to check an object type for a custom pragma? In the manual there's an example of a custom annotation on a type, but it isn't ([https://nim-lang.org/docs/manual.html#implementation-specific-pragmas-custom-annotations](https://nim-lang.org/docs/manual.html#implementation-specific-pra