<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<div><br></div><div>Hi,</div><div><br></div><div>Generators are often given as good usage of call/cc, but in many cases it seems to me that explicitly saving the state is simple enougth that capturing the continutation is not needed.</div><div><br></div><div>For example, if one wants to do something like (make-unfold-generator ...) it is easy to manage the unfold index inside a closure.</div><div><br></div><div>The only good counter-example I have seen and used before is a recursive tree traversal, in this case call/cc appears to be the only way to go. </div><div><br></div><div>I'm curious if someone have other examples of generators where call/cc is a good solution (or any interesting not-too-complex usage of call/cc).</div><div><br></div><div>Thanks.</div><div><br></div><div><br></div>                                            <br /><hr />Emmenez vos contacts faire un tour. <a href='http://go.microsoft.com/?linkid=9724467' target='_new'>Essayez Messenger version mobile</a></body>
</html>