L
lawrence.jones
Harald van D??k said:Allowing ?: to be used as an lvalue could break code, by the way:
currently,
volatile int i;
volatile int j;
rand() ? i : j;
causes a read of both i and j, while this would change to read only one
of them.
Huh? The definition of ?: currently says that only one of the second
and third operands are evaluated, so either i or j is evaluated but not
both, so only one is read.
-Larry Jones
I'm getting disillusioned with these New Years. -- Calvin