[SO] Modifing local class instance in pure function

Steven Schveighoffer schveiguy at yahoo.com
Fri Jun 19 08:59:05 PDT 2009


div0 Wrote:
> In your example you are returning values types, not objects as in the
> original question.

Arrays are not value types.  Substitute int[] x with a pointer, same argument applies.

-Steve


More information about the Digitalmars-d-learn mailing list