I have no idea how to simple initialize shared associative array. This code compiled but causing access violation when running.
shared uint[char] arr; shared static this() { // next expression seems wrong, because // arr is process related and ['a':1, 'b':2] is thread related // probably, should be implicit cast error arr = ['a':1, 'b':2]; // this is okay, but too cumbersome arr['c'] = 3; arr['d'] = 4; } void main() { } DMD32 D Compiler v2.059 on Windows 7 64 bit