3 ms·
> Just replace the use of ++ with an assignment from true. You can't just replace it with assignment to true directly as postfix ++ evaluates to the unmodified
by Figs 8y ago
> Just replace the use of ++ with an assignment from true.
You can't just replace it with assignment to true directly as postfix ++ evaluates to the unmodified value; you actually need to replace b++ with something like (b?true:(b=true,false)) to avoid breaking code that uses b++ in an expression. That seems significantly uglier than just allowing b++ to continue to exist though...