On 12/1/2011 12:45 AM, Don Clugston wrote:

This really looks as though hexDigits is the wrong address. Maybe
because it's a local static variable.
I predict that a minimal test case would be:

void foo(uint value)
{
     static immutable string hexDigits = "0123456789ABCDEF";
     assert( hexDigits[value&  0xF] == '0');
}
void main()
{
   foo(0);
}


Sadly, it works.
_______________________________________________
dmd-internals mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-internals

Reply via email to