S
Shao Miller
I've noticed that each initializer is a full expression with a sequence
point at its end in C1X. But the order of evaluation and side effects
are also unspecified. Are these unsequenced or indeterminately
sequenced? Is each initializer in an initializer-list a full
expression, separate from its peer initializers? If so, what can we
expect from:
int i = 1;
struct foo {
int j;
int k;
} bar = { ++i, i + 5 };
?
My preference would be for indeterminately sequenced. Thanks for any
insight.
- Shao Miller
point at its end in C1X. But the order of evaluation and side effects
are also unspecified. Are these unsequenced or indeterminately
sequenced? Is each initializer in an initializer-list a full
expression, separate from its peer initializers? If so, what can we
expect from:
int i = 1;
struct foo {
int j;
int k;
} bar = { ++i, i + 5 };
?
My preference would be for indeterminately sequenced. Thanks for any
insight.
- Shao Miller