11/29/2012 8:16 PM, monarch_dodra пишет:
On Thursday, 29 November 2012 at 15:14:51 UTC, monarch_dodra wrote:
Thoughts?
I give up:
//----
RCI[] arr3 = [RCI(0), RCI(1)];
foreach(i; 0 .. 2)
assert(arr3[i] == i);
//----
I think I've seen it before. The problem is in the array literal.
http://d.puremagic.com/issues/show_bug.cgi?id=8740
This asserts '-_-
The worst part is that I can *see* in the constructor that the
refcounted store points to an memory location, and that that memory
location's value gets changed to 0...
--
Dmitry Olshansky