@araq Sorry, I guess it's just a template that overloads `/` as defined below:
    
    
    template genOp(op: untyped) =
      proc op*[T](a: T, b: GVec4[T]): GVec4[T] =
        gvec4[T](
          op(a, b[0]),
          op(a, b[1]),
          op(a, b[2]),
          op(a, b[3])
        )
        
        # ... others removed for brevity
    
    genOp(`/`)
    
    
    Run

@planetis `std/lenientops` That's useful to know about, thanks!

I wasn't really concerned so much with specific example though as the 
particular sorting of the overload signatures due to the mismatch between 
`int64` and the default available definition that uses `int` without importing 
`std/lenientops`.

I was just wondering if it might be beginner friendly to look for an `int` 
definition if `int64` is the actual type, for the purpose of error messages.

Reply via email to