digitalmars.D - Identity assignment operator overload LEGAL for const, etc.
- =?iso-8859-2?B?VG9tZWsgU293afFza2k=?= (8/8) Jan 10 2010 This rightfully doesn't compile:
This rightfully doesn't compile: class A { A opAssign(A a); // Error: function test.A.opAssign identity assignment operator overload is illegal } But when instead of A you assign const(A), shared(A) or any_type_constructor(A) it compiles. Is this intended? Tomek
Jan 10 2010