[phobos] datetime review

Yao G. yao.gomez at gmail.com
Sun Oct 10 13:10:32 PDT 2010


On Sat, 09 Oct 2010 23:23:37 -0500, Andrei Alexandrescu  
<andrei at erdani.com> wrote:

> On 10/9/10 20:40 CDT, Denis wrote:
>> I believe in D one should be able to write a RangedInt(int lowerBound,
>> int upperBound) type
>
> More precisely: BoundedInt(long lowerBound, ulong upperBound) so it can  
> express any range of any number.
>
> Andrei

This is an example, ported from the Boost date time library:

http://bitbucket.org/gomez/yao-library/src/tip/src/yao/datetime/core.d#cl-551

-- 
Yao G.


More information about the phobos mailing list