@mratsim: The code needs two changes to work: import macros macro defthing(name: untyped): untyped = # used this instead of parseStmt result = quote do: let `name` = 1000 # Now things get really weird: added a dummy argument and things work as intended.. template calldefthing(name, t: untyped) = defthing `name Extra` calldefthing(x, y) echo $xExtra
- How to call a macro from a template with a constructed identifier ... rpowers
- Re: How to call a macro from a template with a constructed id... mratsim
- Re: How to call a macro from a template with a constructe... rpowers
- Re: How to call a macro from a template with a constr... mratsim
- Re: How to call a macro from a template with a co... Lando