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?