More Elegant Settable Methods?
ryuukk_
ryuukk.dev at gmail.com
Sun Jan 22 02:28:11 UTC 2023
```D
TestStruct ts = {
a: 2, b: 3,
op: (s) {
return s.a + s.b;
}
};
```
This simple! just like with C's designated initializers
More information about the Digitalmars-d-learn
mailing list