The effect of ref

dokutoku 3729541-dokutoku at users.noreply.gitlab.com
Fri Nov 22 03:42:26 UTC 2019


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
}
```



More information about the Digitalmars-d-learn mailing list