Comma operator = broken design

Joshua Reusch yoschi at arkandos.de
Thu Dec 8 09:18:56 PST 2011


> Ahem. So are you suggesting that (a,b) means a tuple everywhere but in a
> for loop, where it is used to separate two statements?

If we use the comma operator only for tuples, there needn't to be a 
special case for loops:

for(x, y = 0 , 100; x < y ; x, y += 1,-1) { ... }



More information about the Digitalmars-d mailing list