On 2014-03-25 12:33, Andrei Alexandrescu wrote:
After the recent discussions regarding the comma operator, and after
inspecting the patterns of code affected by it, Walter and I would
back up the following change to the D language:
1. The comma operator stays with its current syntax.
2. The semantics is the same unless warnings are enabled with "-w"
3. In "-w" mode, semantics are changed in that the type of the comma
operator is NOT the type of its last expression, but instead it's
void.
4. Later on the warning will be promoted to a deprecation followed by
removal from the language.
mwould this effect comma usage inside for-loops as well or will this be special
cased? i would not like to see it go from for-loops. i don't mind otherwise.
/det