dynamic arrays of immutable question: Are the elements actually mutable
monarch_dodra
monarchdodra at gmail.com
Wed Jan 9 11:37:28 PST 2013
On Wednesday, 9 January 2013 at 18:17:52 UTC, monarch_dodra wrote:
> The "good news" is that since the values are T.init'd, then
> opEqual becomes somewhat more valid, although arguably, it
> should really be in-place construction, *especially* if
> immutable is involved (or types without opAssign...).
Wait, never mind. That's only a special case in Appender's
implementation. Since it mallocs the rest of the time, this
doesn't hold, and anything with a constructor (or just) will not
be correctly initialized :/
More information about the Digitalmars-d-learn
mailing list