Replacing .tupleof

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Fri Dec 11 11:31:07 PST 2015


On 12/11/2015 04:14 PM, ZombineDev wrote:
> On Friday, 11 December 2015 at 11:36:38 UTC, Shriramana Sharma wrote:
>> Given that TypeTuple is replaced by AliasSeq (though many don't like
>> the new name), it seems that .tupleof should be replaced by
>> .fieldvalues like std.traits is proposed to have FieldIdentifiers and
>> FieldTypes in
>> https://github.com/D-Programming-Language/phobos/pull/3756. Thoughts?
>
> Incorrect. Tuple is the correct term in this case, because value.tupleof
> is still a run-time value.
> ...

It is a compile-time sequence of run-time values. It avoids limitations 
of alias by apparently being a special case. :o) There is no way to get 
something of the kind that .tupleof gives you without .tupleof.


More information about the Digitalmars-d mailing list