arrays of const, postblit and RefCounted

monarch_dodra monarchdodra at gmail.com
Thu Nov 29 10:52:38 PST 2012


On Thursday, 29 November 2012 at 18:42:17 UTC, Maxim Fomin wrote:
> On Thursday, 29 November 2012 at 15:14:51 UTC, monarch_dodra 
> wrote:
>> I investigating some weird behavior regarding arrays of const 
>> object. I'm not 100% sure what I'm observing, but it would 
>> appear that when adding objects to a const array, objects are 
>> not postblit-ed? Is this the expected behavior?
>>
>> <skipped>
>
> In windows it acts like you describe (no postblit for 
> const(S)arr[]), but in linux it calls postblit 
> http://dpaste.dzfl.pl/e63e5aa3.

Well shit.

It also correctly runs my "RCI[] arr = [RCI(0), RCI(1)];" test.

http://dpaste.dzfl.pl/6baa678d

Gonna see what's in the bug reports then.


More information about the Digitalmars-d mailing list