Passing structs to functions

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jul 2 12:46:53 PDT 2016


On Saturday, 2 July 2016 at 18:37:06 UTC, phant0m wrote:
> How should I pass a struct variable in D effectively?

Passing by value is often the most efficient. It depends on what 
exactly you have in the struct.


More information about the Digitalmars-d-learn mailing list