[squeak-dev] The Trunk: Kernel-cmm.440.mcz
Nicolas Cellier
nicolas.cellier.aka.nice at gmail.com
Thu Apr 8 18:33:42 UTC 2010
Are negative duration possible ?
In which case it might be better to use #quo: and #rem:
Nicolas
2010/4/8 <commits at source.squeak.org>:
> 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!
>
>
>
More information about the Squeak-dev
mailing list
|