Han-Wen Nienhuys <[EMAIL PROTECTED]> writes: > Neil Jerram escreveu: >> Do you think you need to do this in C? (You might do, for reasonable >> performance - I genuinely don't know yet.) The evaluator already has >> hooks (see "Evaluator trap options" in the manual) that allow you to >> call out to arbitrary Scheme code at the entry and exit of every >> frame. > > [EMAIL PROTECTED] info]$ guile > guile> (trap-enable 'enter-frame-handler) > throw from within critical section. > Abortado > [EMAIL PROTECTED] info]$
Takes effect quickly, doesn't it? :-) What you need is something more like this: (trap-set! enter-frame-handler (lambda (key continuation . args) ...)) (trap-enable 'enter-frame) And it's important to do them in this order. Regards, Neil _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel