public vs private alias this

Per Nordlöw per.nordlow at gmail.com
Tue Nov 1 23:01:57 UTC 2022


When is it preferrable to use

```d
struct S { private T t; alias t this; }
```

instead of

```d
struct S { public T t; alias t this; }
```

for any given type `T`?


More information about the Digitalmars-d-learn mailing list