private in class - or is it?
Daniel Keep
daniel.keep.lists at gmail.com
Sat Oct 6 09:27:48 PDT 2007
dominik wrote:
> ok, I'm really having problems with understanding this.. private should be
> private, no? I didn't find anything related to this in documentation.
> Apparently, private has no meaning - not the way as I see it anyways. Works
> both with private keyword preceding variable or private block {}
>
> I'm using 2.005 - but works the same way in 1.x
http://www.digitalmars.com/d/attribute.html
"Private means that only members of the enclosing class can access the
member, or ***members and functions in the same module as the enclosing
class***."
I think we need to make that part bold, bright red and flashing...
-- Daniel
:P
More information about the Digitalmars-d-learn
mailing list