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:<br><br>2::second $ time =&gt; time later;
<br><br>seems so implicit that it&#39;s ambiguous.&nbsp; 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;<br><br>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.
<br><br>-Mike<br><br><br><br><br><div class="gmail_quote">On Jan 7, 2008 10:11 AM, Kassen &lt;<a href="mailto:signal.automatique@gmail.com">signal.automatique@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear list (and language designers in particular), <br><br>this is legal;<br>now + 2::second =&gt; time later;<br><br>so, we know that time and duration are quite similar things (we already knew that ourselves but now we know ChucK agrees).
<br><br>However, this isn&#39;t legal;<br><br>2::second $ time =&gt; time later;<br><br>I tried this, intending &quot;later&quot; to refer to the moment 2 seconds after the VM sprang to life.<br><br><br>Are there good reasons not to allow the casting from time to dur and dur to time?
<br><br>Yours,<br>Kas.<br>
<br>_______________________________________________<br>chuck-users mailing list<br><a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br><a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://semiotech.org">http://semiotech.org</a><br><a href="http://blog.deadlylittlepills.com">
http://blog.deadlylittlepills.com</a><br><a href="http://www.murderkills.com">http://www.murderkills.com</a><br><a href="http://shadowofaculture.blogspot.com">http://shadowofaculture.blogspot.com</a>