Hi Internals function test() > { > echo "Begin Test!\n"; > > throw new Interrupt(); > > echo "Execution resumed!"; > } > > try > { > test(); > } > catch (Interrupt $e) > { > echo "Execution interrupted.\n"; > resume; > } > > The output of this would be: > > Begin Test! > Execution interrupted. > Execution resumed! >
My major concern would be, how does this* really* add to PHP? Perhaps I'm missing the point, but what would this allow that can't be done in some form using well defined "patterns", for lack of a better word. I'm not keen on the idea of throwing things such as Interrupts either, it doesn't quite fit with their general use case. Sam