Closed mikeplavsky closed 11 years ago
|script| | eval | $b = 0; $c = 0 | | show | eval | $b = 5; $b; $c += 5; $c | 5,5 | | show | eval | $b; $c | 5,0 |
Finally $c should be 5 The cause of the issue is $c += is treated as a new local variable.
|script| | eval | $b = 0; $c = 0 | | show | eval | $b = 5; $b; $c += 5; $c | 5,5 | | show | eval | $b; $c | 5,0 |
Finally $c should be 5 The cause of the issue is $c += is treated as a new local variable.