On 2016-04-06 19:15, Kagamin wrote:
On Wednesday, 6 April 2016 at 13:05:31 UTC, sigod wrote:
    module test;

    struct S {
        package int field;

    void main() {
        S s;
        s.field = 1; // Deprecation: test.S.field is not visible from
module test

You need the module to be contained in a package. It's pretty old, AFAIK.

It's all in the same module, I don't see how a protection attribute can affect anything.

/Jacob Carlborg

Reply via email to