Inheritance problem

bearophile bearophileHUGS at lycos.com
Fri Feb 11 13:30:50 PST 2011


Steven Schveighoffer:

> Any code can access any members defined in the current module, regardless  
> of access attributes

I am not sure if Walter understands how much this rule makes it hard for people not already used to protected/private attributes to understand and learn to use those attributes correctly. The C# compiler doesn't have that rule, and it's much more strict. I think this makes learning the usage of those attributes faster.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list