T[new] misgivings
Jason House
jason.james.house at gmail.com
Fri Oct 16 10:16:27 PDT 2009
Andrei Alexandrescu Wrote:
> Walter Bright wrote:
> > I think it would be very strange to have T[] behave like a reference
> > type (which it does now) and T[new] to behave like a value type.
>
> T[] is not a reference type.
>
> Andrei
While true, normal use will be the same as if it was a reference type. All legal changes to a slice impact all copies of the slice.
More information about the Digitalmars-d
mailing list