Re: Operator Overloading : opOpAssign

2012-04-08 Thread Timon Gehr
On 04/08/2012 07:56 PM, Eyyub wrote: Hai, I would to know how to overload this operator and why I have this error at compile-time : http://paste.pocoo.org/show/vlfSSekGLCAriCJpiZvp/ Thanks a lot. Try void opOpAssign(string op)(const Matrix other) if(op == +) I think the fact that

Re: Operator Overloading : opOpAssign

2012-04-08 Thread Eyyub
On Sunday, 8 April 2012 at 18:05:58 UTC, Timon Gehr wrote: On 04/08/2012 07:56 PM, Eyyub wrote: Hai, I would to know how to overload this operator and why I have this error at compile-time : http://paste.pocoo.org/show/vlfSSekGLCAriCJpiZvp/ Thanks a lot. Try void opOpAssign(string

Re: Operator Overloading : opOpAssign

2012-04-08 Thread Artur Skawina
On 04/08/12 20:50, Eyyub wrote: On Sunday, 8 April 2012 at 18:05:58 UTC, Timon Gehr wrote: On 04/08/2012 07:56 PM, Eyyub wrote: Hai, I would to know how to overload this operator and why I have this error at compile-time : http://paste.pocoo.org/show/vlfSSekGLCAriCJpiZvp/ Thanks a lot.

Re: Operator Overloading : opOpAssign

2012-04-08 Thread Eyyub
Ho, if I replace a+=b; by a.opOpAssign!+(b); it works...why ?

Re: Operator Overloading : opOpAssign

2012-04-08 Thread Eyyub
arthur: It still does not work to, I think that is a bug.

Re: Operator Overloading : opOpAssign

2012-04-08 Thread Eyyub
It works with : http://paste.pocoo.org/show/4oIhMg5eBdUoirhk5iYS/ Thanks for all, kiss !

Re: Operator Overloading : opOpAssign

2012-04-08 Thread Timon Gehr
On 04/08/2012 10:06 PM, Eyyub wrote: It works with : http://paste.pocoo.org/show/4oIhMg5eBdUoirhk5iYS/ Thanks for all, kiss ! You don't need/want the 'ref's there.