[phobos] datetime review

Yao G. yao.gomez at gmail.com
Sun Oct 10 22:22:27 PDT 2010


On Sun, 10 Oct 2010 23:36:13 -0500, Andrei Alexandrescu  
<andrei at erdani.com> wrote:

> Do you plan to submit this to Phobos? Then it needs a fair amount of  
> work.
>
> - Need support for unsigned numbers
>
> - Need support for floating-point numbers
>
> - The behavior of the limits is odd - why does IntWrapped!(int, 1, 10)  
> cover [0, 9] and not [1, 10]?
>
> - Limits are adjusted in a Procrustean manner, they should be enforced  
> instead (at least for the Bounded type being discussed)
>
> - asNumber should be exposed as alias this.
>
> - add, subtract etc. should be operators
>
> - Many other functions need to be added
>
>
> Andrei

OK. I'm sorry for the noise.

-- 
Yao G.


More information about the phobos mailing list