DIP19: Remove comma operator from D and provision better syntactic support for tuples

deadalnix deadalnix at gmail.com
Fri Sep 28 09:01:40 PDT 2012


Le 28/09/2012 00:39, ixid a écrit :
>> int, string a = 1, "hello";
>> int, string foo(double, double a) {
>> return cast(int) (d[0] * d[1]), "hello";
>> }
>>
>
>> This is incompatible with current language specs (or will ends up with
>> highly bizantine rules do define what to do, in a topic where it is
>> already complex).
>
> Which parts exactly are Byzantine and why? I'm not arguing, just
> interested to know as this is the part that seems most desirable to me.
>

int a, int b = 3, 3;

Considering how the syntax is defined, this will not do what you expect, 
and it is not fixable easily without breaking other constructs.


More information about the Digitalmars-d mailing list