[chuck-users] cast dur to time?

Kassen signal.automatique at gmail.com
Mon Jan 7 10:11:47 EST 2008

Dear list (and language designers in particular),

this is legal;
now + 2::second => time later;

so, we know that time and duration are quite similar things (we already knew
that ourselves but now we know ChucK agrees).

However, this isn't legal;

2::second $ time => time later;

I tried this, intending "later" to refer to the moment 2 seconds after the
VM sprang to life.

Are there good reasons not to allow the casting from time to dur and dur to

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20080107/a3e9b501/attachment.htm 

More information about the chuck-users mailing list