cannot initalize a struct for AA
Jacob Carlborg
doob at me.com
Sun Dec 16 14:33:56 UTC 2018
On 2018-12-15 03:40, Jonathan M Davis wrote:
> Now, there are folks who want to be able to do stuff like
>
> foo({42, 19});
>
> and have that work, and IIRC, someone was working on a DIP to allow that
> sort of thing (which would presumably then include your use case)
No, the DIP is to be able to use static initialization using the fields
in arbitrary expressions, i.e.
foo(S{ y: 19, x: 42 });
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list