On Wednesday, 5 February 2014 at 10:33:08 UTC, dbjdbj wrote:

Please consider this: http://dpaste.dzfl.pl/dc4a3c29e57f

What is my mistake ?

Thanks ...

You cannot overload identity assignment for classes. It's a language construct that rebinds a reference and cannot be overridden. Such opAssign overloading is only possible for structs.

See http://dlang.org/operatoroverloading.html#Assignment.

Reply via email to