[Bese-devel] Incorrect behavior with continuations.
William Halliburton
whalliburton at gmail.com
Thu Aug 11 04:05:03 UTC 2005
Thank you for the pointer. Setting *call/cc-returns* gives me the
behavior I wanted.
I did notice that your examples do not work with the current arnesi.
You have to currently call kall on the continuation and they also give
a different behavior.
(with-call/cc
(print (list 'foo
(let/cc k
(kall k 'bar)
'baz))))
Prints (FOO BAR) and returns (FOO BAR) regardless of *call/cc-returns*.
Will
On 8/10/05, Larry D'Anna <smoof-ra at elder-gods.org> wrote:
> * William Halliburton (whalliburton at gmail.com) [050810 12:51]:
> > Using the latest arnesi. (Same behavior with arnesi darcs from Aug 7).
> >
> > Embedding a call/cc withing a with-call/cc does not seem to complete
> > the execution.
> >
> > (with-call/cc
> > (call/cc (lambda (cc) ()))
> > 3)
> >
> > returns nill but should return 3
>
>
> http://common-lisp.net/pipermail/bese-devel/2005-June/000546.html
>
> --larry
>
> _______________________________________________
> bese-devel mailing list
> bese-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/bese-devel
>
More information about the bese-devel
mailing list