Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!aramis.rutgers.edu!atanasoff.rutgers.edu!lou From: lou@atanasoff.rutgers.edu (Lou Steinberg) Newsgroups: comp.lang.lisp Subject: Re: continuations in Common Lisp Message-ID: Date: 19 Dec 89 18:34:58 GMT References: <21344@mimsy.umd.edu> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 25 To: spector@brillig.umd.edu Cc: lou In article <21344@mimsy.umd.edu> spector@brillig.umd.edu (Lee Spector) writes: > 1) Does anyone know of existing CL code which "fully" implements continuations; > i.e., which implements both downward and upward continuations? If so, > how can this code be obtained? As far as I can tell, it would require an extension to CL to duplicate the ease of use of continuations that scheme has. E.g. I don't think there is any way to implement Scheme's "call-with-current-continuation" in portable common lisp, at least not with the generality of the version in Scheme. > > 2) Does anyone know of an explanation of the functionality and uses of > continuations that uses CL as the base language (other than Hennessey's)? Artificial Intelligence Programming 2nd edition, by Charniak, et al. , Lawrence Erlbaum Publishers, has an extensive discussion of continuation-passing style programming in common lisp, including a section on using it to implement co-routines. -- Lou Steinberg uucp: {pretty much any major site}!rutgers!aramis.rutgers.edu!lou arpa: lou@cs.rutgers.edu