www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - introduced bug on dmd0.116+

bug in associative array with "real" index was
introduced on dmd0.116 and still remains on dmd0.119.

<code>
void main()
{
int[int] aint;
aint[0] = 5;
assert((0 in aint) !== null);  // works

int[real] areal;
areal[0] = 5;
assert((0 in areal) !== null);  // fails
}
</code>
Mar 29 2005