Do not reset tilde in ClearError, as ClearError is often called when there is no error #1142
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes RCWA.
This is undoing an earlier fix. The problem was that the ~ variable is not
cleared when exiting a break loop, or after an error. Reseting it's value
in ClearError fixed this, but it turns out ClearError is called even when there
are no errors, for example after reading a file.
This does reintroduce a tilde problem -- but it will only be hit by programs
which cause an error, then try to read tilde and find it has a value,
when it shouldn't.
A true fix will be reasonably irritating surgery, and still wouldn't properly fix the problem.
The real fix is to start storing, and restoring, tilde, every time we longjmp/setjmp, but the
cost of that might add up for such a little used feature (and it only matters after we have
an error, or exit the break loop).