[chuck-users] cast dur to time?
Michael Heuer
heuermh at gmail.com
Mon Jan 7 14:39:04 EST 2008
Kassen wrote:
> I see where you are coming from, but "now" really is a duration already, in
> a way.
>
> <<<now /minute>>>; is quite legal and will return a float expressing the
> amount of minutes the VM has been alive. I see "now" and other times as a
> duration with the start of the VM as it's start.
>
> So; we can divide "now" by a duration and get a float but a float times a
> duration will always be a "duration" and not a "time", so far, in practice.
Seems to me that now / minute => float; should be an error.
now is an instant, not a duration. I feel the concepts should be kept separate.
michael
More information about the chuck-users
mailing list