pass a struct by value/ref and size of the struct

ref2401 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Mar 21 16:31:06 PDT 2016


I have got a plenty of structs in my project. Their size varies 
from 12 bytes to 128 bytes.
Is there a rule of thumb that states which structs I pass by 
value and which I should pass by reference due to their size?

Thanks.


More information about the Digitalmars-d-learn mailing list