T[new] misgivings
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu Oct 15 20:52:48 PDT 2009
Robert Jacques wrote:
> I like (and have used) the opSliceAssign syntax to represent by
> value/copy assignment as opposed to opAssign's by reference syntax. You
> could always define T[new] auto-resize in the case of a[] = b, but then
> you'd have to decide if that behavior should be extended to slices.
I could. Walter doesn't wanna. He says he wants a[] = b[] to generate an
unchecked memcpy in release mode.
Andrei
More information about the Digitalmars-d
mailing list