View mode: basic / threaded / horizontal-split · Log in · Help
January 10, 2010
Identity assignment operator overload LEGAL for const, etc.
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
Top | Discussion index | About this forum | D home