On Tue, 10 Feb 2004, Andrew Pimlott wrote:

> I don't see why nanoseconds aren't normalized to [0, 1s).  The tests
> seem to indicate that this is intentional, but I don't see what good
> negative nanoseconds do.  It doesn't seem to make any difference in any
> calculation; the only visible effect appears to be in
> ->delta_nanoseconds.
>
> And by what logic should
>
>     Duration->new(seconds => 1) - Duration->new(nanoseconds => 500000000)
>
> and
>
>     Duration->new(nanoseconds => 500000000)
>
> differ?

I think you're seeing buggy behavior enshrined via tests ;)

In other words, the code is wrong, and the tests are wrong too.


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

Reply via email to