<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Mar 13, 2010, at 2:41 PM, Mark Engelberg wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">OK, I'm getting confused here.<br><br>1.&nbsp; What are the important differences between stop-with and end-of-time?<br></blockquote><div><br></div><div>'stop-with' is just a constructor for a world, meaning (stop-with 10) is just a special kind of world. You could introduce it via a definition:&nbsp;</div><div><br></div><div>(define lost-world (stop-with "you lost"))</div><div>(define won-world (stop-with "you won"))</div><div><br></div><div>And your event handlers could return one of these worlds as they see fit:&nbsp;</div><div><br></div><div>(define (mouse-handler w x y me) (if (= x 100) lost-world w))</div><div><br></div><div>;; ---&nbsp;</div><div><br></div><div>end-of-time is an imperative command that shuts down the current thread and custodian.&nbsp;</div><div><br></div><div><br></div><br><blockquote type="cite">2.&nbsp; Does render get called again after stop-with? &nbsp;</blockquote><br></div><div>Yes. See docs.&nbsp;</div><div><br></div><div><font class="Apple-style-span" face="Times"><br></font></div></body></html>