Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!iuvax!daemon From: raja@silver.ucs.indiana.edu (Raja Sooriamurthi) Newsgroups: comp.lang.scheme Subject: Re: call/cc Message-ID: <49352@iuvax.cs.indiana.edu> Date: 30 Jun 90 15:53:45 GMT Sender: daemon@iuvax.cs.indiana.edu Lines: 24 In comp.lang.scheme you write: >I have problem concerning call/cc. I want to pass some extra parameter >along with the current continuation to a continuation, and I don't see >how that is possible with call/cc. This is useful when modelling >the coroutine aspect of classes in Simula where detach implicitly >returns an environment (the class object) and a continuation (the rest >of the body). I don't know if I understand your question clearly, but will the below outline solve your problem? (define receiver (lambda (x) (lambda (current-cont) . body .))) (call/cc (receiver extra-param)) - Raja raja@silver.ucs.indiana.edu