Does anyone care if Tuple.slice() returns by ref?

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Sun Feb 7 04:51:07 PST 2016


On Sunday, 7 February 2016 at 12:28:07 UTC, tsbockman wrote:
> That is surprising indeed, but I don't see how fixing it would 
> solve the Tuple.slice() memory alignment issues.

Why won't a reinterpret cast work?

struct tupleX {
   T0 _0;
   T1 _1;
}

struct tupleX_slice_1_2 {
   T0 _dummy0;
   T1 _0
}



More information about the Digitalmars-d mailing list