proc add(t: typedesc[Vector], a, b: Vector): Vector {.importcpp: 
"global.Vector.add(@)".} # typedesc[vector] is needed here only for 
disambiguation with previous add function.
    let v = Vector.add(a, b)
    

However I would not call that idiomatic =).

Reply via email to