Tuple DIP

Basile B. b2.temp at gmx.com
Sat Jan 13 02:33:40 UTC 2018


On Saturday, 13 January 2018 at 02:18:20 UTC, Basile B. wrote:
> On Saturday, 13 January 2018 at 02:15:37 UTC, Basile B. wrote:
>> On Saturday, 13 January 2018 at 02:08:03 UTC, jmh530 wrote:
>>> [...]
>>
>> Really ?
>> After the type should be the declarator. In this example 
>> there's no declarator but if you add it then it becomes very 
>> strange:
>>
>> (int, string) ab (a, b) = tuple(1, "2");
>
> Forgot to say that on the other hand
>
>   (int a, string b) ab = tuple(1, "2");
>
> works better.

Better check twice than one. Actually i see now that there's no 
Declarator as used here, i.e for the whole tuple. Curious.


More information about the Digitalmars-d mailing list