forward declaration of static arg with macro

2021-08-20 Thread chaemon
Thanks! I understand the issue! By the way, I didn't know quote. It looks good to make macros readble.

forward declaration of static arg with macro

2021-08-16 Thread solo989
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..

forward declaration of static arg with macro

2021-08-15 Thread ynfle
This works, although I don't know if it helps you

forward declaration of static arg with macro

2021-08-15 Thread chaemon
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