The Trunk: Kernel-cmm.440.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Kernel-cmm.440.mcz

commits-2
Chris Muller uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-cmm.440.mcz

==================== Summary ====================

Name: Kernel-cmm.440
Author: cmm
Time: 8 April 2010, 12:21:17.282 pm
UUID: e685ace9-6aa0-46a4-a4a2-02b16b385eec
Ancestors: Kernel-jcg.439

Fixed Duration bug.

=============== Diff against Kernel-jcg.439 ===============

Item was changed:
  ----- Method: Duration class>>milliSeconds: (in category 'squeak protocol') -----
+ milliSeconds: milliCount
- milliSeconds: milliCount
  "Since seconds is 0 we can call the instance directly."
+ ^ self
+ seconds: milliCount // 1000
+ nanoSeconds: (milliCount \\ 1000)*NanosInMillisecond!
-
- ^ self basicNew seconds: 0 nanoSeconds: milliCount * NanosInMillisecond!


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Kernel-cmm.440.mcz

Nicolas Cellier
Are negative duration possible ?
In which case it might be better to use #quo: and #rem:

Nicolas

2010/4/8  <[hidden email]>:

> Chris Muller uploaded a new version of Kernel to project The Trunk:
> http://source.squeak.org/trunk/Kernel-cmm.440.mcz
>
> ==================== Summary ====================
>
> Name: Kernel-cmm.440
> Author: cmm
> Time: 8 April 2010, 12:21:17.282 pm
> UUID: e685ace9-6aa0-46a4-a4a2-02b16b385eec
> Ancestors: Kernel-jcg.439
>
> Fixed Duration bug.
>
> =============== Diff against Kernel-jcg.439 ===============
>
> Item was changed:
>  ----- Method: Duration class>>milliSeconds: (in category 'squeak protocol') -----
> + milliSeconds: milliCount
> - milliSeconds: milliCount
>        "Since seconds is 0 we can call the instance directly."
> +       ^ self
> +               seconds: milliCount // 1000
> +               nanoSeconds: (milliCount \\ 1000)*NanosInMillisecond!
> -
> -       ^ self basicNew seconds: 0 nanoSeconds: milliCount * NanosInMillisecond!
>
>
>