Thread
:
Best (CD Bootable?) Linux Distro for Dominions?
View Single Post
#
23
March 27th, 2004, 08:04 AM
alexti
First Lieutenant
Join Date: Dec 2003
Location: Calgary, Canada
Posts: 762
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Best (CD Bootable?) Linux Distro for Dominions?
Quote:
Originally posted by Cainehill:
Hard to say how to rewrite the expression without seeing the source code and expression
Johan has posted the code that was causing problems. It was like that:
code:
if (n + d6() < m + d6())
and different compilers evaluated left and right subexpressions in a different order.
There was some thread a while ago, where programming contest was suggested. Now we have a good problem:
- how to make the expression produce consistent results (independent on compiler), according to the specified order of function d6 invocation (from left to right or from right to left)?
- can it be done without modifying the expression?
alexti
View Public Profile
Send a private message to alexti
Find all posts by alexti