function parameters: is it possible to pass byref ... while being optional at the same time ?

someone someone at somewhere.com
Sat Jul 17 22:39:50 UTC 2021


On Saturday, 17 July 2021 at 21:02:38 UTC, Adam Ruppe wrote:

> Why are you using ref here at all?

Muscle memory I suppose; objects need to be passed by reference, 
these are the things I'll need to be re-wired to in D.

> You probably shouldn't be using it. But if it is legitimately 
> needed you can do a pointer instead of ref.

No. Nothing special at all here.



More information about the Digitalmars-d-learn mailing list