Thanks! I understand the issue!
By the way, I didn't know quote. It looks good to make macros readble.
You didn't copy your main params. The exact same nimNodes are being used for
both formal params which is causing some problems with binding. Try this
proc copy(a : seq[NimNode]) : seq[NimNode] =
result.setLen(len(a))
for i in 0..
This works, although I don't know if it helps you
I found that the following macro which generates forward declaration and actual
declaration of a proc with static arg cannot be compiled with message "Error:
cannot instantiate: 'static_arg:type'". I compiled by Nim 1.4.8.
It can be compiled by older version of Nim like 1.0.6. It also can be com