Re-hi, On Thu, Aug 11, 2011 at 10:46 AM, Armin Rigo <ar...@tunes.org> wrote: > I suppose this is already well-known, but I couldn't find an obvious > reference.
Ah, I think it's what you get if you assume that your language has callcc but no exceptions, and explicitly implement exceptions on top of callcc. At every call you would pass an extra argument, which is the continuation to switch to in case of an exception. It usually just comes from the parent, but is changed in situations where we'd do a "try:". I need to check that (theoretically) doing this would give the exact same behavior as what I'm writing right now to support (real) exceptions with continuations. A bientôt, Armin. _______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev