search of a workaround
Namespace
rswhite4 at googlemail.com
Sat Feb 9 04:10:56 PST 2013
> I'm not sure what "in spite of" is. No offense, but you seem to
> be the only person having problems with this.
Maybe I'm the only one who uses so many structs. That happens
when you have strong C++ background. I miss '&'. :D
> And the workarounds are plenty: My proposal, templatizing for
> auto ref, pass by value...
I don't know. Templatizing just for auto ref seems a bad Idea for
me.
But pass by value for small structs shouldn't be much overhead.
> In particular, you can't pack classes in a table, for example.
I don't understand.
> That said, if you pass everything by value, and make things <
> 16 bytes structs, and > 16 bytes classes, you should get a good
> deal.
Yes, that sounds good.
More information about the Digitalmars-d-learn
mailing list