2 ms·
> By "copy-only" I meant something you couldn't have more than one reference to: every name (variable) to which you assign the data would have its own independe
by kllrnohj 7y ago
> By "copy-only" I meant something you couldn't have more than one reference to: every name (variable) to which you assign the data would have its own independent copy.
That's not really a requirement of value types, no. C# has value types (structs) and you can have references to them as well (ref & out params).
In general though yes it would be typically copied around, same as an 'int' is. Particularly if Java doesn't add something equivalent to ref/out params.
- wool_gather 7y agoI know, that's why I asked for clarification originally. :) Anyways, I appreciate the details.