[plt-scheme] aborts, composable continution, and begin

From: Dimitris Vyzovitis (vyzo at media.mit.edu)
Date: Sat Jun 16 15:35:22 EDT 2007

On Sat, 16 Jun 2007, Robby Findler wrote:

> Top-level begins aren't like internal begins. They are spliced out and
> each subexpression is treated as separate. That's probably the source
> of the confusion.

This doesn't quite explain what happens to the continuation. Shouldn't it,
after the splicing, be still there?

> On 6/16/07, Dimitris Vyzovitis <vyzo at media.mit.edu> wrote:
> > Is this correct behavior?
> >
> > (define (foo)
> >   (call-with-composable-continuation
> >    (lambda (k)
> >      (abort-current-continuation
> >       (default-continuation-prompt-tag)
> >       k))))
> >
> > > (begin (foo) (printf "I fooed!~n"))
> > > ((lambda () (foo) (printf "I lambda-fooed!~n")))
> > I lambda-fooed!

-- vyzo



Posted on the users mailing list.