R.F. Pels
3/18/2008 9:18:00 AM
Subbu wrote:
> I came across &&= while reading some code. I know what ||= does but
> not this one. Can someone explain what it does?
self assignment
Examples:
foo += 12
Syntax:
expr op= expr # left hand side must be assignable.
This form evaluated as expr = expr op expr. But right hand side expression
evaluated once. op can be one of:
+, -, *, /, %, **, &, |, ^, <<, >>, &&, ||
There may be no space between operators and =. >
RTFM?
--
Ruurd