<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hey Giles,<div><br><div>i think that the problem is not that continuations are weird, but that computerscientists are not very creative<span class="Apple-style-span" style="font-size: 13px; "> at inventing helpful names. </span></div><div><span class="Apple-style-span" style="font-size: 13px; ">So i would call it a frozen_computation_state or frozen_environment because that is what a continuation object represents.</span></div><div><span class="Apple-style-span" style="font-size: 13px; "> And the call-with-current-continuation (callcc) really makes no exception when a part of the environment is dedicated to rspec.</span></div><div><span class="Apple-style-span" style="font-size: 13px; "> When you send 'call' to the continuation object, the environment will be set to  the state that is represented by the continuation object - the variable with the name continuation points to nil and the next step in evaluation is line 13 in your spec file.</span></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br class="webkit-block-placeholder"></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px;">Matthias Hennemeyer</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br class="webkit-block-placeholder"></span></font></div><div><span class="Apple-style-span" style="font-size: 13px; "> </span></div><div><br class="webkit-block-placeholder"></div><div> <br><div><div>Am 01.03.2008 um 18:37 schrieb Giles Bowkett:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I appear to have written code which travels backwards through time:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://www.vimeo.com/742590">http://www.vimeo.com/742590</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">This disturbs me immensely. If anyone can explain it, that would be cool.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I think it's an illusion brought about by how RSpec wraps the code it</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">executes, and by the sheer weirdness of continuations.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">--<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Giles Bowkett</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Blog: <a href="http://gilesbowkett.blogspot.com">http://gilesbowkett.blogspot.com</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Portfolio: <a href="http://www.gilesgoatboy.org">http://www.gilesgoatboy.org</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Tumblelog: <a href="http://giles.tumblr.com">http://giles.tumblr.com</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Podcast: <a href="http://hollywoodgrit.blogspot.com">http://hollywoodgrit.blogspot.com</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">rspec-users mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://rubyforge.org/mailman/listinfo/rspec-users">http://rubyforge.org/mailman/listinfo/rspec-users</a></div> </blockquote></div><br></div></div></body></html>