<br><br><div class="gmail_quote">2010/9/5 Denis Koroskin <span dir="ltr">&lt;<a href="mailto:2korden@gmail.com">2korden@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Sun, 05 Sep 2010 16:59:31 +0400, Philippe Sigaud &lt;<a href="mailto:philippe.sigaud@gmail.com" target="_blank">philippe.sigaud@gmail.com</a>&gt; wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
But the real challenge in the SO question is the &#39;going back in time&#39; part,<br>
which I have trouble to understand : how can you modify x and y through a<br>
multiplication and a comparison?<br>
<br>
</blockquote>
<br></div>
It can be done using setjmp/longjmp, see C implementation for an example:<br>
<br>
<a href="http://homepage.mac.com/sigfpe/Computing/continuations.html" target="_blank">http://homepage.mac.com/sigfpe/Computing/continuations.html</a><br>
</blockquote></div><br>How can we access setjmp/longjmp in D?<br><br>Anyway, I&#39;m a bit nervous with using such a raw statement. An oh-so-slightly wrapped equivalent for D would be better.<br><br><br>Philippe<br><br>