Encapsulate arguments
Adam D. Ruppe
destructionator at gmail.com
Wed Jan 1 18:44:15 PST 2014
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.
More information about the Digitalmars-d
mailing list