On Thursday, 2 January 2014 at 01:07:01 UTC, alex burton wrote:
Thanks but won't the struct be copied at every function call then ?

Yeah (unless the compiler optimizes it out), but that's not a big deal, and might even be better, since the fields need to be loaded anyway and doing it through a pointer might be a waste.

But normal function arguments are copied anyway, so it is no loss.

Reply via email to