Object Oriented Programming with D Language. Private access specifier. Summary.

Jb jb at nowhere.com
Fri Aug 22 06:40:49 PDT 2008


"Jarrett Billingsley" <kb3ctd2 at yahoo.com> wrote in message 
news:g8mbbp$1doh$1 at digitalmars.com...
> "DF" <deefriend at ymail.com> wrote in message 
> news:g8ln06$3097$1 at digitalmars.com...
>
>> Thanks for your replies, guys. Just one last thing to ask. Is there a way 
>> to have private field in a class, that is and will be private only in 
>> this class, no matter what changes I will make in my module?
>> (Here I mean private - private to the class not to the module).
>
> Put the class in its own module ;)

I think c# and Delphi have the qualifier "strict private", which does in 
fact make it absolutely private to that class, rather than still visible to 
other classes in the same module / unit.

Maybe D would benefit from that also.
 





More information about the Digitalmars-d mailing list