Struct Constructor Lazy

Biotronic via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 12 05:07:10 PDT 2017


On Wednesday, 12 July 2017 at 12:02:37 UTC, Jiyan wrote:
> Thank you, one last question:
> If i declare the parameter as ref i, then there shouldnt be any 
> overhead wouldnt it?
>
> Thanks :)

That would be basically the exact equivalent - instead of passing 
an int, you'll be passing a pointer.

--
   Biotronic


More information about the Digitalmars-d-learn mailing list