Shadowing of members

bearophile bearophileHUGS at lycos.com
Thu Jan 10 01:53:21 PST 2013


Jonathan M Davis:

> You don't need it. It just makes the code clearer if you do.

It's not just a matter of clarity for the reader. It's a 
convention that avoids bugs when I write code. In my bug diary I 
count six or more bugs caused by that in my D code. Plus one more 
related bug even when I have started to use a convention.


> The language doesn't force anything on

Issue 4407 is indeed proposing a little language change.

Bye,
bearophile


More information about the Digitalmars-d mailing list