$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: David B. Held (dheld_at_[hidden])
Date: 2004-07-07 18:51:48
Rob Stewart wrote:
> [...]
> Thus, any expression using commas must be understood to have
> indeterminant order of evaluation.
Are you sure?
> Consider:
>
> int v[] = { foo(), bar() };
>
> Doesn't this exhibit the same problem? If so, the problem is
> only that an initialization library exposes the problem to more
> daylight.
> [...]
But consider:
int v = foo(), bar();
I agree that expecting more order-of-initialization than you get is
a problem, but the funny thing is that the comma operator gives you
more than other uses of the comma.
Dave