Wait, what? What is AliasSeq?

Xiaoxi via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 9 09:19:23 PDT 2015


On Thursday, 9 July 2015 at 15:03:25 UTC, deadalnix wrote:
> On Thursday, 9 July 2015 at 14:29:55 UTC, Zoadian wrote:
>> It is a compiletime tuple so i'd vote for:
>> CtTuple
>
> Too bad it is not a tuple and it is not exclusively compile 
> time. Otherwise, that'd be a great name.

Really? Proof to the contrary: it cant be indexed without first 
being copied into a runtime construct, its as much compiletime 
only as UDAs are.

alias Tuple(Args...) = Args;
int main(string args[])
{
   return Tuple!(1,2)[args.length];
}


More information about the Digitalmars-d mailing list