[BUG]? Timespan>>end
Brent Pinkney
brent.pinkney at aircom.co.za
Mon Feb 23 08:21:32 UTC 2004
On Mon, 23 Feb 2004 00:11:56 -0800, Avi Bryant <avi at beta4.com> wrote:
> I'm not sure what you're saying here. Is it that this is "unexpected"
> (to a user), but correct behavior? Or that the behavior of the code is
> not what you intended for it to be?
>
Mmm, basically the english use is ambiguous, if I am correct the
mathematical interpretaion/notation of the expression '1pm to 2pm' is
[1pm..2pm).
Bacause computer time is discrete and timespan do not overlap, 2pm is not
the end of the timespan but the start of the next. The end of the timespan
must therefore be one tick (nanoSecond) previous.
The alternative leads to overlapping timespans - a big no no.
I did agonise over this as well.
Brent
More information about the Squeak-dev
mailing list
|