Personally I get the usefulness of having the integer count the number of times it has been called and then removed - as this would help nested functions and recursive function calls where you may have disable updating called at the top of a function and then enable at the bottom.
But having a simple true false means the first time false is called - screen updating gets enabled when you may not want it to be (and you'd need to add extra code to prevent this).
However - I agree that maybe it should persist across a deferred loop, and possibly get round the problem X-Raym pointed out that if an error occurs in the script (unhandled - not that I've had any success handling errors in Reascript :| ) - then reaper could automatically re-enable updating in the error reporting code.
|