This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: call-with-current-continuation


> From: Telford Tendys <telford@triangle.triode.net.au>
> > 
> > R4RS Scheme has call-with-current-continuation, which is much more flexible 
> > than the jump instructions of imperative languages, at least is capable to
> > emulate them.
> 
> It just so happens that I was reading R4RS just earlier today and thinking that
> call-with-current-continuation looks pretty cool. Then I looked at the libguile
> and found that call-with-current-continuation is not supported <sob>.
> 

Where did you look?  It works for me.
guile> (call-with-current-continuation (lambda (return)
guile> (begin (display "x\n") (display "y\n") (return 3)(display "z\n"))))
x
y
3

-- 
     --Keith

This mail message sent by GNU emacs and Linux.
Food, Shelter, Source code.