Shadowing of members

Jacob Carlborg doob at me.com
Thu Jan 10 05:40:06 PST 2013


On 2013-01-10 10:49, bearophile wrote:

> I agree.
> And indeed that enhancement request aims to fix that little part of the
> language.

If you get an error if you shadowing a member variable it sounds like 
you need to start using naming conventions. Someone adds a new variable 
to a base class and suddenly your code breaks cause it use the same name 
for a local variable.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list