Passing structs to functions

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jul 2 17:05:55 PDT 2016


On Saturday, 2 July 2016 at 21:23:57 UTC, Namespace wrote:
> passing by value is only a good solution if your struct is 
> really small.

It's not uncommon for optimizers to generate the same code either 
way regardless of what you write.


More information about the Digitalmars-d-learn mailing list