Assoc. Array and struct with immutable member

Dgame r.schuett.1987 at gmail.com
Sun Apr 15 17:59:01 UTC 2018


How am I supposed to insert a struct with immutable members into 
an assoc. array?

Reduced example:
----
struct A {
     immutable string name;
}

A[string] as;
as["a"] = A("a"); // Does not work
----


More information about the Digitalmars-d-learn mailing list