Well view types _should_ allow it to happen, but until then you can either do 
the open array or use a macro like:
    
    
    import std/macros
    
    macro myPretendProc(ii: varargs[var int]): untyped =
      result = newStmtList()
      for x in ii:
        result.add newCall("show", x)
    
    var
      i1 = 1
      i2 = 2
      i3 = 3
    
    proc show(i: var int) = echo i # A proc that needs var
    
    myPretendProc(i1, i2, i3);
    
    
    Run

Reply via email to