Passing dynamic arrays
Daniel Gibson
metalcaedes at gmail.com
Mon Nov 8 10:22:38 PST 2010
Walter Bright schrieb:
> Daniel Gibson wrote:
>> BTW: What were the reasons to pass static arrays by value in D2 (while
>> in D1 they're passed by reference)?
>
> It makes things like vectors (i.e. float[3]) natural to manipulate. It
> also segues nicely into hopeful future support for the CPU's vector
> instructions.
Why can't that be done when the static arrays are passed by reference?
More information about the Digitalmars-d
mailing list