Code That Says Exactly What It Means
Zealot
zealot at planet.earth
Thu Oct 30 10:20:01 UTC 2025
On Wednesday, 29 October 2025 at 22:33:50 UTC, Peter C wrote:
> And really, if scopeprivate produces cognitive overload in a
> programmers brain, they probably should choose another
> profession.
maybe you should choose another profession /s.
there's a lot of complexity if you consider metaprogramming,
tupleof, ...
and you can simply do this for the exact same result:
```d
import std;
class A {
struct _____ {
int a = 42;
int b = 43;
}
_____ _;
void foo() {
writeln(_.a);
}
}
void main() {
auto a = new A;
a.foo();
a._.a.writeln; // you don't do this accidentially
}
```
More information about the Digitalmars-d
mailing list