March 19, 2003 Bug in associative arrays? | ||||
|---|---|---|---|---|
| ||||
The following code verifies that v1 and v2 have the expected values, but shows that v2 is a member of x. It seems that the lookup is using a uint instead of a ulong?
int main()
{
char[][ulong] x;
ulong v1 = 297321415603;
ulong v2 = 331681153971;
x[v1] = "aa";
printf( "%llu %llu\n", v1, v2 );
if (v2 in x) printf( "wrong\n" );
return( 0 );
}
| ||||
March 21, 2003 Re: Bug in associative arrays? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Steve Adams | I'll check it out. | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply