DIP22 : Private symbol visibility

Dicebot m.strashun at gmail.com
Mon Jan 28 09:27:39 PST 2013


On Monday, 28 January 2013 at 17:18:27 UTC, eles wrote:
> On Monday, 28 January 2013 at 17:05:38 UTC, Dicebot wrote:
>> http://wiki.dlang.org/DIP22
>
> Error on that page (for C++):
>
> " public
> Default one, "if you can see symbol - you can access it"
>
> That is true only for structs. For classes, "private" is the 
> default.
>
> See also this:
>
> http://stackoverflow.com/questions/1247745/default-visibility-of-c-class-struct-members

It was on http://wiki.dlang.org/Access_specifiers_and_visibility 
actually, I had global symbols in mind when was writing that. 
Fixed now.


More information about the Digitalmars-d-announce mailing list