D Uniform initialization {}

Patric Dexheimer via Digitalmars-d digitalmars-d at puremagic.com
Sat Oct 22 14:26:53 PDT 2016


S[] s = [{ 1, 2 }];

Nice, did´n knew that it worked.

On Friday, 21 October 2016 at 21:41:16 UTC, Daniel Kozak wrote:
> Because there is no need. In c++ it is disaster because there 
> is milion way how to initialize something, it is really hard to 
> understand and inconsistent

I never really felt lost about it with c++, but the argument 
holds true anyway :)


More information about the Digitalmars-d mailing list