[julia-users] overloading assignment operator

2015-04-27 Thread Toivo Henningsson
The answer is basically no. Assignment to an identifier always creates a new binding for that identifier, possibly after converting the right hand side to the type of the variable in question. For an object x, x[inds...] = a can be overloaded (this is the setindex! function). At some point

[julia-users] overloading assignment operator

2015-04-27 Thread Thorsten Dahmen
Hi, is it possible to overload the assignment operator in Julia like in C++. I cannot really find information whether this is possible or not and if not why not and if there is an alternative. Thanks, Thorsten