[phobos] Starting work on std.time

SHOO zan77137 at nifty.com
Sat Aug 28 05:47:15 PDT 2010


(2010/08/28 17:24), Yao G. wrote:
> This has been a busy week, so I didn't have much time to work on the
> date time modules I'm porting. But I started the work on one of the Time
> components: TimeDuration. Here's the code:
>
> http://ideone.com/3yNG6
>
> It still needs more polish, better docs and more comprehensive unit
> test. But it works. The main issue it could have is that it needs
> another internal module to work, because the TimeDuration struct
> supports special values (+infinite, -infinite, NAN, etc.), and to add
> support for those, some helper structs had to be ported. Here's the
> internal, impl module in question:
>
> http://ideone.com/g9IWA
>
> On the other hand, I did a quick dive on Johnathan code, and I think
> it's superb. I think it deserves a review, because it could be a better
> candidate to inclusion that mine. I'll continue porting the Boost date
> time library, because as I'm using it on my own code, but obviously the
> better one should be picked.
>
>
> --
> Yao G.

It looks nice!
I look forward to a std.time included Phobos.

Good luck!


More information about the phobos mailing list