Clarification on migration to value types and boxed vs unboxed representations
vitalyd at gmail.com
Tue Jan 6 02:05:15 UTC 2015
How does that help? You need a heap object (array) and if you then modify
one of the structs in there, you need to copy it and emplace it back into
the array slot.
Sent from my phone
On Jan 5, 2015 9:01 PM, "Simon Ochsenreither" <simon at ochsenreither.de>
> Mutable structs aren't used all that often in c# but there are times when
>> they're very useful. C# allows passing them by ref, which mitigates this
>> problem. This also allows one to have large structs but avoid the copying
>> What's the plan to avoid such copying costs with proposed value types in
> You could pass them in an array.
More information about the valhalla-dev