arrays of const, postblit and RefCounted
Maxim Fomin
maxim at maxim-fomin.ru
Thu Nov 29 10:42:13 PST 2012
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.
More information about the Digitalmars-d
mailing list