sarrays are value types?

Simen kjaeraas simen.kjaras at gmail.com
Fri Dec 3 09:31:13 PST 2010


Ellery Newcomer <ellery-newcomer at utulsa.edu> wrote:

> I might just be having one of those moments, but if static arrays are  
> value types, doesn't it make more sense that
>
> arr1 = arr2;
>
> performs a value copy than a reference copy?

That's what it does. Not a deep value copy, of course, but a value copy.

-- 
Simen


More information about the Digitalmars-d-learn mailing list