Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!zephyr.ens.tek.com!tektronix!percy!data!kend From: kend@data.UUCP (Ken Dickey) Newsgroups: comp.lang.scheme Subject: Re: catch/throw in scheme - how to ?? Message-ID: <502@data.UUCP> Date: 10 Jun 91 23:20:22 GMT References: <1991Jun10.124127.17926@eua.ericsson.se> Organization: Microcosm, Beaverton, OR Lines: 14 joe@erix.ericsson.se (Joe Armstrong) writes: >Could sombody who understands these things kindly explain how >to do the equivalent of 'catch' and 'throw' in scheme?? - >can one use call/cc for such operations? - if so how? Just use your local syntax system to define the syntactic transformation: (catch . ) --> (call/cc (throw) ) Then you can (throw ) from within . -Ken Dickey kend@data.uucp