Returning dynamic array from the function?
rjframe
dlang at ryanjframe.com
Sat Sep 8 10:49:13 UTC 2018
On Sat, 08 Sep 2018 10:22:38 +0000, SuperPrower wrote:
> Also, is this me and my bad English, or first comment in code in this
> paragraph (linked above, not in the discussion) is supposed to be
> something different? Shouldn't it be reference?
Static arrays are value types, so the values are copied (see section
12.1.2 on that page).
That said, static arrays do make that example a bit strange.
More information about the Digitalmars-d-learn
mailing list