Construct an used-defined hash table container type from an AA-literal expression

Per Nordlöw per.nordlow at gmail.com
Tue Jul 7 12:41:23 UTC 2020


On Monday, 6 July 2020 at 12:04:11 UTC, Jacob Carlborg wrote:
> void main() @nogc
> {
>     auto a = tuple(Pair("foo", 1), Pair("bar", 2));
> }
>
> --
> /Jacob Carlborg

Thanks.

What about construction and assignment from a static array of 
`Pair`'s? Wouldn't that be easier on the compiler?


More information about the Digitalmars-d-learn mailing list