Adam D. Ruppe wrote:
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,
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
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?
```d
void test1 (int * X)
{
// some processing
}
void test2 (ref int X)
{
Is there a difference in the execution speed and stability when
executing the program by rewriting the parameter of the function
argument like this?
```d
void test1 (int * X)
{
// some processing
}
void test2 (ref int X)
{
// some processing
}
```