ref tuples

Dicebot public at dicebot.lv
Wed Jul 3 04:59:01 PDT 2013


On Wednesday, 3 July 2013 at 11:54:39 UTC, Artur Skawina wrote:
> Well, aliases can be used to get a similar effect.
>
>    template tie(A...) { alias tie = A; }
>    tie!(a, b) = tuple(1, 2);
>
> artur

Which is actually already in Phobos:

     TypeTuple!(a, b) = tuple(1, 2);


More information about the Digitalmars-d-learn mailing list