About ref used for performance reasons with struct
Jakob Ovrum
jakobovrum at gmail.com
Mon Feb 11 04:10:54 PST 2013
On Monday, 11 February 2013 at 06:52:33 UTC, deadalnix wrote:
> Ok, We have 2 usages of ref : when you actually need to modify
> informations, and for performance reasons. Let's talk about the
> second one.
I touched on the idea in a StackOverflow answer a while back:
http://stackoverflow.com/a/8515844
The meaning of 'in' means such parameters can in theory be
optimized if the compiler has the proper sources, so it would
seem right to leverage it.
More information about the Digitalmars-d
mailing list