Should the comma operator be removed in D2?

KennyTM~ kennytm at gmail.com
Tue Nov 17 13:51:08 PST 2009


On Nov 18, 09 05:40, Ellery Newcomer wrote:
> Bill Baxter wrote:
>>
>> However, I think for the good of humanity we can accept that one
>> little bizarre example of legal C syntax not doing the same thing in
>> D.
>
> int[] i;
>
> auto a = (i)[0];
>
> what does this do?

(i) should not construct a tuple. Probably (i,).



More information about the Digitalmars-d mailing list