16.12. Expression Lists

An expression list consists of a number of comma-separated subexpressions. It evaluates them from left to right, type and result are those of the last (right-most) expression. This is similar to the concatenation of expressions with the comma operator in the C programming language.

Expression Lists
[55]Expression::=AssignmentExpression | ExpressionList  
[56]ExpressionList::=SingleVariableDeclaration | ListExpression ',' ListExpression { ',' ListExpression }  
[57]ListExpression::=AssignmentExpression | SingleVariableDeclaration  

As an addition to the comma operator of the C programming language, local variables can be declared in expression lists. The scope of these variables is the rest of the expression list, starting with the initializer of the local variable.