[plt-scheme] aborts, composable continution, and begin
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.
Robby
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!
>
> It seems that the continuation is lost in begin, but not in the
> application.
>
> -- vyzo
>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>