Designated initializers to function argument

Ki Rill rill.ki at yahoo.com
Tue Jul 11 15:22:16 UTC 2023


On Tuesday, 11 July 2023 at 15:16:54 UTC, Ki Rill wrote:
> ```D
> 
> // or this
> apply(Appearance(color: BLACK, strokeWidth: 4)); // other 
> fields are default initialized: strokeOpacity, fillOpacity, 
> etc...
>
> ```

Ok, this works with DMD v2.103, but does not work with an older 
version (I had ldc2 installed based on DMD v2.98).


More information about the Digitalmars-d-learn mailing list