T[new] misgivings
Rainer Deyke
rainerd at eldwood.com
Thu Oct 15 20:54:36 PDT 2009
Andrei Alexandrescu wrote:
> Then your argument building on similarity between the two is weakened.
>
> T[new] a;
> T[] b;
> ....
> a = [1, 2, 3];
> b = [1, 2, 3];
>
> Central to your argument was that the two must do the same thing. Since
> now literals are in a whole new league (they aren't slices because
> slices can't be assigned to arrays), the cornerstone of your argument
> goes away.
Actually [1, 2, 3] looks more like an array than a slice to me. Arrays
can be assigned to slices, no?
--
Rainer Deyke - rainerd at eldwood.com
More information about the Digitalmars-d
mailing list