struct initializer

zjh fqbqrr at 163.com
Thu Nov 30 14:10:35 UTC 2023


On Wednesday, 29 November 2023 at 16:38:36 UTC, Dom DiSc wrote:

```d
> struct S { int a; int b; }
> S2 fun3() { return S2( 5, 2 ); }
```

Here,`S2( 5, 2 );` violeit `DRY` principle.



More information about the Digitalmars-d-learn mailing list