[Scilab-Dev] Overloading operator "="

Pierre Vuillemin contact at pierre-vuillemin.fr
Tue Aug 25 14:41:20 CEST 2015


Hi all,

I know that it is possible to overload the comparison operator "==", but 
I was wondering whether it was possible to overload "=" when the type of 
both sides are known?

For instance, if x and y are custom objects

x = customMlist_1;
y = customMlist_2;

I would like to overload

x = y;

-> In practice, x is an empty object and y somehow contains its new 
attributes.


And a side question : can anyone create a project on the scilab forge?

Best regards,

Pierre














More information about the dev mailing list