arrays of const, postblit and RefCounted

monarch_dodra monarchdodra at gmail.com
Thu Nov 29 08:16:16 PST 2012


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);
//----

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...


More information about the Digitalmars-d mailing list