Hi Chris,
my understanding is that Emmanouil wants to do something like:
nv_mynvo lnv_out
lnv_out = lnv_in1 + lnv_in2;
In this case the "+" is overloaded because you redefine the way it works for user-defined types only (objects, structures), except built-in types. C++ for example provides a special “operator” function that can be defined inside your custom class. PB does not have such feature, it supports inclusional polymorphism, but not operational polymorphism via Interfaces as in C# and Java.
My earlier suggestion was to implement some (global) uf_do_operation as workaround.
Best,
.m
Unfortunately using overloaded functions instead of operators wouldn't be a solution in my case.
Thanks for your input.