On Mon, 15 Nov 2004 17:19:01 -0500, Matt Fowles <[EMAIL PROTECTED]> wrote: > Which gives me an evil idea. We could allow bytecode to specify that > it wanted to start taking full continuations everywhere, but that > these would never be used below it on the callstack. Thus the regex > engine could do this and not suffer too much efficiency loss for > taking new continuations for every backtrack point. This is not really evil - it's known as an "escape continuation" or "weak continuation", or - more commonly - as an "exception".
Cheers, Michael