uniform initialization in D (as in C++11): i{...}

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 5 04:35:35 PDT 2016


On 2016-04-05 09:47, ZombineDev wrote:

> D currently supports
> Point3 p = { x:1, y:2, z:3 };
>
> It just needs to be extended to work in more places.
>
> https://issues.dlang.org/show_bug.cgi?id=15692

That's only for structs. A uniform initialization syntax needs to be ... 
uniform. It has to work for everything.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list