DIP 1019--Named Arguments Lite--Final Review

Walter Bright newshound2 at digitalmars.com
Mon Aug 26 22:45:16 UTC 2019


On 8/26/2019 7:47 AM, Kagamin wrote:
> struct S { int a, b, c, d = 7; }
> S w = { c:1, a:1, 3 };
> 
> I don't even know if this result is contrived. Maybe it's trivial?

It initializes to:

     c = 1
     a = 1
     b = 3
     d = 7


More information about the Digitalmars-d mailing list