Hi again,
So one more problem: int main(int argc, array(string) argv) { int count = 0; int ts = 0;
ts = time() + 1; while (time() <= ts) /* count++ */; write("%u %u\n", time(), ts); }
Output: 1046227356 1046227357
The first number expected to be greater than second. If I insert "count++" into while loop (instead of empty body) everything is OK. This problem doesn't occur when time() is called indirectly. And, whatever it is, optimization of this kind is a bit weird, IMHO... :) Regards, /Al