DMD 0.177 release

Lionello Lunesu lio at lunesu.remove.com
Thu Dec 14 05:11:03 PST 2006


Walter Bright wrote:
> It is possible to force the return type of opAssign. But I'd suggest 
> making it an S*, with the rewrite to:
> 
>     *(a.opAssign(b))
> 

class C {
   C* opAssign(...) {...}
}
struct S {
   S* opAssign(...) {...}
}

Seriously?? Ugh.

Why not just "C opAssign" and "S opAssign"? In the opCall discussion you 
said yourself that the return value will be optimized.

Am I missing something?

L.



More information about the Digitalmars-d-announce mailing list