Passing dynamic arrays

Walter Bright newshound2 at digitalmars.com
Mon Nov 8 10:17:51 PST 2010


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.


More information about the Digitalmars-d mailing list