I also tried defining & using `byUnsafeAddr` \- which is a copy/paste 
definition of `byaddr` with `unsafeaddr` instead of `addr`.
    
    
    template byUnsafeAddr(lhs, typ, expr) =
      when typ is type(nil):
        let tmp = unsafeAddr(expr)
      else:
        let tmp: ptr typ = unsafeAddr(expr)
      template lhs: untyped = tmp[]
    
    
    Run

Same result.

Reply via email to