Merge tuples

simendsjo simendsjo at gmail.com
Thu May 31 10:14:47 PDT 2012


On Thu, 31 May 2012 18:42:20 +0200, bearophile <bearophileHUGS at lycos.com>  
wrote:

> simendsjo:
>
>> int a;
>> string b;
>> ToTuple!(a, b) should create Tuple!(int, "a", string, "b")
>>
>> template ToTuple(Variables...) {
>>   ?
>> }
>
> ToTuple will have a hard time inventing the names for those
> fields...
>
> Bye,
> bearophile


Not sure I understand what you mean. Using Variables[i].stringof in a  
template gives the original name.


More information about the Digitalmars-d-learn mailing list