I'm trying to use byaddr inside a template (I could use a macro as wel if need 
be) but it fails to compile - while the same code in a `block` works.
    
    
    template test(x: string, body)=
      var y {.byaddr, inject.} = x
      body
    
    var xx = "123"
    test(xx):
      echo y
    
    
    Run

Output 
    
    
     Error: invalid pragma: byaddr
    
    Run

Reply via email to