[squeak-dev] The Trunk: Kernel-ul.447.mcz
Chris Muller
asqueaker at gmail.com
Wed Apr 28 19:43:57 UTC 2010
Thanks, I was not sure about Nicolas meant, and the concept of
"negative" Durations was confusing to me..
On Wed, Apr 28, 2010 at 3:01 AM, <commits at source.squeak.org> wrote:
> Levente Uzonyi uploaded a new version of Kernel to project The Trunk:
> http://source.squeak.org/trunk/Kernel-ul.447.mcz
>
> ==================== Summary ====================
>
> Name: Kernel-ul.447
> Author: ul
> Time: 28 April 2010, 10:01:34.283 am
> UUID: e4508c46-01d1-b943-8c11-b4a471f12488
> Ancestors: Kernel-ar.446
>
> - use #quo: and #rem: instead of #// and #\\ to handle negative arguments properly in Duration class >> #milliSeconds:
> - also removed the method comment which was obsolete
>
> =============== Diff against Kernel-ar.446 ===============
>
> Item was changed:
> ----- Method: Duration class>>milliSeconds: (in category 'squeak protocol') -----
> milliSeconds: milliCount
> +
> + ^self
> + seconds: (milliCount quo: 1000)
> + nanoSeconds: (milliCount rem: 1000) * NanosInMillisecond!
> - "Since seconds is 0 we can call the instance directly."
> - ^ self
> - seconds: milliCount // 1000
> - nanoSeconds: (milliCount \\ 1000)*NanosInMillisecond!
>
>
>
More information about the Squeak-dev
mailing list
|