Dlang and POO

user1234 user1234 at 12.de
Wed Jun 23 07:04:05 UTC 2021


On Tuesday, 22 June 2021 at 02:37:28 UTC, user1234 wrote:
> would require a new keyword

I think actually that "super private" would work.

```d
struct S {
    super private:
      static int a;
    private:
       static void test() {
         a = 0;
       }
}

void test() {
   S.test(); // Ok
   S.a = 0;  // NG
}
```

Who cares could write a DIP.


More information about the Digitalmars-d mailing list