DIP 1019--Named Arguments Lite--Final Review
a11e99z
black80 at bk.ru
Mon Aug 26 15:06:44 UTC 2019
On Monday, 26 August 2019 at 14:47:01 UTC, 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?
of course its trivial, this is "D Rorschach test".
even more:
u can get green care-De belt if u can answer how will be
initialized struct just look at 20 samples.
and u will get brown care-De belt when u can say same for
overloaded functions.
everything has already been decided.
u can write like that, there won’t be any errors, just don’t
write like that.
More information about the Digitalmars-d
mailing list