in reply to Re^4: Why are "a ||= b" and "a = a || b" different?
in thread Why are "a ||= b" and "a = a || b" different?
You have a typo and meant ||= instead of =||.
In the case of (A,B) ||= C, (A,B) || ... is the comma operator in scalar context. It evaluates the left argument A, then the right argument B and returns B. Thus you've just written A; B ||= C;.
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Why are "a ||= b" and "a = a || b" different?
by saintmike (Vicar) on Mar 04, 2007 at 22:59 UTC |