Shadowing of members

bearophile bearophileHUGS at lycos.com
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.

Bye,
bearophile


More information about the Digitalmars-d mailing list