Converting array in to aliased tuple type.

aliak something at something.com
Mon Dec 25 21:11:08 UTC 2017


On Monday, 25 December 2017 at 17:59:54 UTC, visitor wrote:
> On Monday, 25 December 2017 at 15:03:08 UTC, aliak wrote:
>> On Monday, 25 December 2017 at 14:08:08 UTC, Mengu wrote:
>>>
>> I was kind of hoping for some magical D variadic alias 
>> template on Tuple or something that will just deconstruct the 
>> arguments in to tuple components.
>
> i don't think it's better but :
>
> https://run.dlang.io/is/2rgOzh

Heh, no it's probably not, but interesting! So it does work with 
a static array. Is it that .array on a range is not able to infer 
a size and hence produce a static array for the given situation? 
Is this a D limitation, a logical one or maybe just not 
implemented yet?

Cheers!


More information about the Digitalmars-d-learn mailing list