@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
    

Reply via email to