The effect of ref
Adam D. Ruppe
destructionator at gmail.com
Fri Nov 22 03:46:46 UTC 2019
On Friday, 22 November 2019 at 03:42:26 UTC, dokutoku wrote:
> Is there a difference in the execution speed and stability when
> executing the program by rewriting the parameter of the
> function argument like this?
the generated code the processor sees is generally identical, but
the `ref` version is potentially better because then X cannot
possibly be `null` which can help you write better code and might
help the optimizer too.
More information about the Digitalmars-d-learn
mailing list