Thread overview
sarrays are value types?
Dec 03, 2010
Ellery Newcomer
Dec 03, 2010
Simen kjaeraas
Dec 06, 2010
bearophile
December 03, 2010
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?
December 03, 2010
Ellery Newcomer <ellery-newcomer@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
December 06, 2010
Simen kjaeraas:

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

See also: http://d.puremagic.com/issues/show_bug.cgi?id=3971

Bye,
bearophile