dcollections 1.0 and 2.0a beta released

Bill Baxter wbaxter at gmail.com
Fri May 21 11:01:25 PDT 2010


On Fri, May 21, 2010 at 10:50 AM, superdan <super at dan.org> wrote:

>> void foo(int[int] x)
>> {
>>    x[5] = 5;
>> }
>> void main()
>> {
>>    int[int] x;
>>    foo(x);
>>    assert(x[5] == 5); // fails
>> }
>> -Steve
>
> wrote a long post but it got lost. shit. bottom line dats a bug in dmd or phobos.

Unfortunately it works exactly as designed.

--bb


More information about the Digitalmars-d-announce mailing list