On 11 Sep 2003 11:36:02 GMT,
GA************@shepjeng.twbbs.org
(³á³á³á³á) wrote:
int i = 3, j = i;
is this well-defined?
because someone says
"The order of evaluation of initializers is not defined."
They are wrong. An initializer is a full-expression and the end of a
full-expression is a sequence point. 6.8p3.
Perhaps they intended, or meant and you misunderstood, that for a
single variable of aggregate type (array or struct) initialized by an
initializer-list, 6.7.8p23, "The order in which any side effects occur
among the initialization list expressions is unspecified.130)" "130)
In particular, the evaluation order need not be the same as the order
of subobject initialization." which must be textual order, p19.
- David.Thompson1 at worldnet.att.net