[ENH] Dates-raok

ok at cs.otago.ac.nz ok at cs.otago.ac.nz
Tue Apr 30 03:07:19 UTC 2002

from preamble:

"Change Set:		Dates-raok
Date:			19 April 2002
Author:			Richard A. O'Keefe

My original intent was just to add a few class comments, but I soon
noticed a few
missing methods (enumerating over the days of a month, for example). 
That's not
all that's missing, a DateInterval class (with Week and Month as
subclasses of that
instead of Date) is clearly called for.  But that's too much refactoring
for one morning.
I also noticed that the instance creation methods of Date were inherited
by Month, and
could too easily be used to create invalid Months, so they had to be
Very little has been done to Week; there should be two classes
MondayWeek and
SundayWeek instead of the 'startMonday' hack.

Date>>previous: appeared to be broken, but Week relied on the breakage,
so I have
just noted the problem in a comment."!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Dates-raok.cs.gz
Type: application/octet-stream
Size: 3334 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020430/0f8d88f2/Dates-raok.cs.obj

More information about the Squeak-dev mailing list