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: searching an explanation: call/cc and 'do' strangeness


| Well, it seems to work in the example. I'll give it a try and see if it
| scales to my application.  Let me see if I understand you right: the idea
| is to use a global variable for the continuation?  And this will work
| because call/cc don't capture global bindings?  

No, it does capture global bindings.

| Or is the difference that there is only one global binding, but a new
| binding for each iteration of "do"?

That's it.  call/cc captures the binding but doesn't notice if you use
set! to change the value.