Shadowing of members

bearophile bearophileHUGS at
Wed Jan 9 18:59:38 PST 2013

Jonathan M Davis:

> Why not just prevent identity assignments altogether? What 
> would be the
> purpose of even allowing a variable to be assigned itself?

Despite being sometimes useful in generic code (where?), 
self-assignment is a common source for bugs.


More information about the Digitalmars-d mailing list