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

From: Robby Findler (robby at cs.uchicago.edu)
Date: Sat Jun 16 15:44:48 EDT 2007

No, there is an abort around top-level expressions (including spliced out ones).

Robby

On 6/16/07, Dimitris Vyzovitis <vyzo at media.mit.edu> wrote:
> 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.