About ref used for performance reasons with struct

jerro a at a.com
Mon Feb 11 16:31:44 PST 2013


> To be honest, up until recently, I mistakenly thought the 
> compiler DID
> do this. (Yea, my mistake.)
>
> Is it possible I had confused structs with static arrays? Do 
> static
> arrays do that?

Maybe you were thinking about named return value optimization 
(which applies to return values, not parameters)?


More information about the Digitalmars-d mailing list