Passing a single tuple or multiple values

jmh530 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 19 10:14:16 PDT 2016


On Tuesday, 19 July 2016 at 15:40:20 UTC, Lodovico Giaretta wrote:
>
> You can find this out from the error, which says that you can't 
> expand an object of type `(Tuple!(int, int))`. Note the 
> surrounding parenthesis: they tell you that what you have is 
> not a Tuple, but an AliasSeq whose only member is a Tuple. If 
> you do `[0]` on it, you obtain the correct type, i.e. 
> `Tuple!(int, int)`, without the parenthesis.

Ah.


More information about the Digitalmars-d-learn mailing list