parse arguments sequentially
Peter Kurpis
pkurpis@keck.hawaii.edu
Fri May 18 12:13:00 GMT 2001
> I know one of my colleague already submited this problem.
> Let remind you the problem.
> asume that you have
>
> foo(foo(foo(inv(x), foo1(y))))
>
> I am using the same compiler g++ on both linux and solaris,
> The evaluation order of inv(x) and foo1(y) differ from linux to solaris,
> and this is really bad for my application.
>
> I need the evaluation order tobe the same for both architecture.
> my question is: for the same compiler (g++), can we control that order?
For *all* compilers,
i1=inv(x), i2=foo1(y), foo(foo(foo(i1,i2)));
This is an issue regarding the C language, not any particular compiler.
This question's already been answered by several people. I even sent
your colleague a personal email yesterday.
More information about the Gcc-help
mailing list