[Issue 2954] [tdpl] Appalling bug in associative arrays (D2 only)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 19 08:51:34 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=2954
--- Comment #9 from Andrei Alexandrescu <andrei at erdani.com> 2014-03-19 08:51:30 PDT ---
Thanks, indeed it wasn't fixed. Current test code:
import std.stdio;
void main() {
uint[string] hash;
char[] a = "abc".dup;
const ca = a;
hash[ca] = 42;
a[0] = 'A';
writeln(hash.keys);
}
Accessing lvalues in a hash table must be done with a type assignable to the
key type. Rvalue lookup may be done with types only comparable t the key type.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list