Run-time Indexing of a Compile-Time Tuple

Jakob Ovrum via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed May 13 01:24:31 PDT 2015


On Tuesday, 12 May 2015 at 13:30:22 UTC, Idan Arye wrote:
> A little hacky, but how about casting it to a static array?
>
> http://dpaste.dzfl.pl/d0059e6e6c09

This PR[1] achieves this without making a copy.

[1] https://github.com/D-Programming-Language/phobos/pull/3198


More information about the Digitalmars-d-learn mailing list