<br><br><div><span class="gmail_quote">On 07/01/2008, <b class="gmail_sendername">mike clemow</b> &lt;<a href="mailto:gelfmuse@gmail.com">gelfmuse@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Kassen,<br><br>That actually doesn&#39;t make sense to me.&nbsp; 2::second has no reference point to when it started or when it ends.&nbsp; It&#39;s just 2 seconds of duration.&nbsp; So, for me, this:<span class="q"><br><br>2::second $ time =&gt; time later;
<br><br></span>seems so implicit that it&#39;s ambiguous.&nbsp;</blockquote><div><br>I see where you are coming from, but &quot;now&quot; really is a duration already, in a way.<br><br>&lt;&lt;&lt;now /minute&gt;&gt;&gt;; is quite legal and will return a float expressing the amount of minutes the VM has been alive. I see &quot;now&quot; and other times as a duration with the start of the VM as it&#39;s start.
<br><br>So; we can divide &quot;now&quot; by a duration and get a float but a float times a duration will always be a &quot;duration&quot; and not a &quot;time&quot;, so far, in practice.<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 I would, however, agree that there ought to be a (dare I say) keyword for the time at which the VM started so that you could basically do the same thing that you did in the first line.
<br><br>vmstart + 2::second =&gt; time afterVmStarted;</blockquote><div><br>A keyword for this may not be enough. The following is a attempt to create my own &quot;birth&quot; keyword expressing this. I can&#39;t get it smaller then this and I would say this is quite perverse in a way;
<br><br>&nbsp;//strongly typed meets strongly timed :¬p<br>//at least it runs and works....<br>now - ((now /samp)::samp) =&gt; time birth;<br><br>I&#39;d say this means casting can make sense but I&#39;m open to ideas.<br>&nbsp;<br>
<br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Of course, you could just approximate this functionality by having this line run the moment the vm starts:
<br><br>now =&gt; time vmstart;<br><br>Then, you&#39;d be able to the do everything relative to that time.&nbsp; At least, that&#39;s how I would solve it.
</blockquote><div><br>Maybe you&#39;ll like my attempt above too.... well, I think it works....<br><br>Kas.<br><br><br></div></div>