struct visibility attributes
Basile B. via Digitalmars-d
digitalmars-d at puremagic.com
Sun Aug 28 02:52:54 PDT 2016
On Sunday, 28 August 2016 at 09:32:11 UTC, eugene wrote:
> Hello, everyone,
> i looked at
> https://dlang.org/spec/attribute.html#visibility_attributes but
> it says nothing about visibility attributes in structs.
inside a module you can even access to the private fields, it's
clearly written in the specs:
> Symbols with private visibility can only be accessed from
> within the same module.
Some languages have a "strict private" protection level to ensure
a proper usage of the fields inside a same module, but not D.
More information about the Digitalmars-d
mailing list