Is this a bug in std.typecons.Tuple.slice?

Marc Schütz via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 9 02:54:42 PST 2016


On Tuesday, 9 February 2016 at 09:05:58 UTC, Ola Fosheim Grøstad 
wrote:
> IMO one shouldn't be able to take the reference of a tuple, to 
> ensure that it can be kept in registers.

No need to restrict the language here, there's nothing stopping a 
decent compiler from storing tuples (actually _anything_) in 
registers, in some cases even if references are taken. I'm pretty 
sure LLVM can handle this.


More information about the Digitalmars-d-learn mailing list