Replacing .tupleof

ZombineDev via Digitalmars-d digitalmars-d at puremagic.com
Fri Dec 11 07:14:14 PST 2015


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.

AliasSeq is for template arguments.

TypeTuple was renamed to AliasSeq to avoid confusion with actual 
run-time tuples like .tupleof or std.typecons.Tuple.


More information about the Digitalmars-d mailing list