[plt-scheme] Re: call/cc, set!, and fluid-let

From: David Van Horn (dvanhorn at cs.uvm.edu)
Date: Tue Jun 14 11:50:07 EDT 2005

John Clements wrote:
> I claim that
> (let/cc k M0 .... (k N))
> is equivalent to
> (begin M0 ... N)
> if there are no references to k in any of M0 ... or N.

Almost.  One of these will consume all available memory, the other will not.

(let loop () (let/ec k (k (loop))))
(let loop () (begin (loop)))


Posted on the users mailing list.