Major performance problem with std.array.front()

Walter Bright newshound2 at digitalmars.com
Thu Mar 6 22:18:14 PST 2014


On 3/6/2014 10:12 PM, H. S. Teoh wrote:
> From what I understand, structs are *supposed* to be thin value types. I
> would say that if a struct is under a certain size (determined by the
> compiler), and doesn't have complicated semantics like dtors and stuff
> like that, then it should be treated like a POD (passed in registers,
> etc).

Yes, that's right.



More information about the Digitalmars-d mailing list