Re: Check For A Symbol

2016-09-14 Thread ivanitto
Thank you guys, it helped.

Re: Check For A Symbol

2016-09-13 Thread Krux02
I guess I have to be more careful when I say that something does not exist.

Re: Check For A Symbol

2016-09-13 Thread Araq
For simple cases there is `when declared(module.foo)` (or just `when declared(foo)`).

Re: Check For A Symbol

2016-09-13 Thread Krux02
To answar your question, probably not the way you want it to be. For me it took me a while to get used to the way how things are done with Nim macros. For example with typed macros, you can ask the type of any node with `getTypeInst` and `getTypeImpl` what type they have, or even look on how the

Check For A Symbol

2016-09-13 Thread ivanitto
Is it possible at compile time/run time to check if symbol "" is defined? If it is defined, then is it possible to get know if it is Proc/Variable/etc ?