Associative Array - where's my error?

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Apr 28 08:37:39 PDT 2011


There's more issues with string assignments. For example see this:
http://d.puremagic.com/issues/show_bug.cgi?id=5059

In that example, key.name() returns a string. But "key" itself will be
reused on every loop, and the string that key holds will be
overwritten on each pass.

I haven't gotten any comments on that bug report yet. I'm not sure if
it really is a bug, but it certainly is unexpected that an immutable
string gets overwritten.


More information about the Digitalmars-d-learn mailing list