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

tsbockman via Digitalmars-d digitalmars-d at puremagic.com
Sun Feb 7 04:28:07 PST 2016


On Sunday, 7 February 2016 at 08:54:08 UTC, ZombineDev wrote:
> Contrary to my expectations, slicing bultin tuples returns a 
> copy. (http://dpaste.dzfl.pl/fd96b17e735d)
> Maybe we need to fix this in the compiler. That way we can 
> reuse the language feature for std.typecons : Tuple.slice().

That is surprising indeed, but I don't see how fixing it would 
solve the Tuple.slice() memory alignment issues.


More information about the Digitalmars-d mailing list