# assume we have a library with a few functions like
    proc t1(x: var uint32; y: var uint32) =
      echo x, y
      inc(x)
      inc(y)
    
    
    # one way to wrap these to Nim is this:
    proc t2(x: var int; y: var int) =
      var h1 = uint32(x)
      var h2 = uint32(y)
      t1(h1, h2)
      x = int(h1)
      y = int(h2)
    
    

I assume there is no better solution available? The GTK related modules seems 
to have a few hundred procs like that, so I think I have to write some 
generator code for that.

Reply via email to