On Tuesday 23 November 2010 20:43:34 dsimcha wrote: > I was browsing through druntime's lifetime.d for an unrelated reason and I > noticed that, when an array is copied for the purpose of appending to it, > the postblits are not called on the new array if it is an array of > structs. Is there something I'm missing, or is this a bug that somehow > noone has noticed up to this point?
Well, if it's copied for the purpose of appending, the elements need to be moved, not copied, don't they? And if they're moved, there's no need to call the postblit constructor. - Jonathan M Davis
