[squeak-dev] Fixes for Durations (week, hour, ...)
Torsten Bergmann
astares at gmx.de
Mon Oct 29 17:26:50 UTC 2012
There was a discussion on Pharo list on methods like
hours vs. hour
minutes vs minute
...
with the agreement that it makes only sense to have
the plural and singular forms the same.
This allows more natural treating of durations and fix some
issues so things like:
0.5 hour minutes
or
(1/2) hour minutes
return 30 correctly, etc.
There are three Pharo issues ([2] [3] and [4]) for that.
I reworked the changes and test cases also for Squeak
(see attached changeset) since should help being compatible
at this level.
I can commit the changes to Squeak trunk - but at least
maybe someone can shortly review them.
Thx
Torsten
[1] http://lists.gforge.inria.fr/pipermail/pharo-project/2012-October/070509.html
[2] https://code.google.com/p/pharo/issues/detail?id=6877
[3] https://code.google.com/p/pharo/issues/detail?id=6876 (duplicate of 6877)
[4] http://code.google.com/p/pharo/issues/detail?id=6886
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FixDurat.cs
Type: application/octet-stream
Size: 4773 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20121029/794ff504/FixDurat.obj
More information about the Squeak-dev
mailing list
|