On Thu, 21 Jan 2010 22:44:24 -0500, Ellery Newcomer
ellery-newco...@utulsa.edu wrote:
according to the spec,
a op= b;
is semantically equivalent to
a = a op b;
but this doesn't seem to be strictly true. for example:
char c = 'a';
real r = 3.14;
c = c + r; // error
c += r; // accepted;
This may be is a very basic question, but is there a way to let me omit a
repeating variable when doing multiple boolean operations?
if ( var == a || var == b || var == c || var == d)
if ( var == (a || b || c || d) )
Simen kjaeraas Wrote:
Not tested, but they should work:
if ( anySame( var, a, b, c, d ) ) {
}
if ( allSame( var, a, b, c, d ) ) {
}
A lot prettier.
I thought there would be a generic (basic) solution to this which I just didn't
know about but maybe I actually do know the basics by