Path: utzoo!attcan!uunet!mailrus!accuvax.nwu.edu!anaxagoras!krulwich From: krulwich@ils.nwu.edu (Bruce &) Newsgroups: comp.lang.scheme Subject: Re: call/cc Message-ID: <1051@anaxagoras.ils.nwu.edu> Date: 3 Jul 90 16:24:40 GMT References: <1990Jun30.113103.5377@idt.unit.no> Sender: news@anaxagoras.ils.nwu.edu Reply-To: krulwich@ils.nwu.edu (Bruce &) Organization: Institute for the Learning Sciences, Northwestern University Lines: 18 In-reply-to: even@idt.unit.no (Even A. Karlsson) In article <1990Jun30.113103.5377@idt.unit.no>, even@idt (Even A. Karlsson) writes: >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). Can you be more specific? It seems to me that you should be able to do this by lexically capturing other variables in the closure you give to CALL/CC. Can you give an example of the behavior you want? Bruce Krulwich krulwich@ils.nwu.edu