On Sunday, 21 August 2016 at 23:57:27 UTC, brian wrote:
I understand it's a map, but does my syntax not define an Associative Array??

yeah, it is. If that's what you want, good!

So I wanted something dynamic.

OK, then you should use pointers so you can have several references to the same object in different maps (so you can have one for ID, one for name, etc.).

Just make it

testStruct*[int] testStructArray;

and then try compiling the rest basically as it is, newing the struct, it should work.

Reply via email to