Associative Arrays and Structs
Dan
murpsoft at hotmail.com
Sat Mar 17 07:44:43 PDT 2007
Hi guys,
I managed to perform a regression test on my use of associative arrays. Everything works up until you start trying to use operator overrides on an item within the associative array.
For example, if I use Value[char[]], and Value has opCall(int), and I try to:
Value[char[]] x = 3;
That will give me an Error: Access Violation.
But this works:
Value x = 3;
I'm assuming I need to do something else for this then, perhaps override opIndex() ?
More information about the Digitalmars-d-learn
mailing list