Marko Rauhamaa wrote:

    def main():
        except ValueError:
            # I'm having none of it!
            resume "CarryOn!"

The problem is, how can the file f unclose itself when work resumes?

The same thing could happen in Scheme, though. Re-entering a
context via a continuation doesn't magically reset everything
to the way it was at some earlier time. A data structure that
has been mutated will still be mutated, and a file that has
been closed will still be closed.


Reply via email to