Warning: explicit element-wise assignment (this.vector)[] = vec.vector[cast(ulong)0..cast(ulong)dimension]

Ali Çehreli acehreli at yahoo.com
Mon Jun 24 17:19:38 PDT 2013


On 06/24/2013 05:16 PM, Ali Çehreli wrote:

 > 2) Mixing static array and dynamic array on both sides of = is 
disallowed:

 >    da[] = sa[];   // ditto
 >    da   = sa[];   // ditto

And I didn't mean that those two have the same meaning. The former is 
"copy all elements", and the latter is "refer to all of sa's elements".

Ali



More information about the Digitalmars-d-learn mailing list