I believe in D one should be able to write a RangedInt(int lowerBound, int upperBound) type that would make sure it contains value in the range specified (that would require runtime checks, but I think that's acceptable, those check can be disabled in release). Could be suitable for DayOfWeek, Month, etc. _______________________________________________ phobos mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/phobos
- Re: [phobos] datetime review Jonathan M Davis
- Re: [phobos] datetime review Walter Bright
- Re: [phobos] datetime review Johannes Pfau
- Re: [phobos] datetime review Jacob Carlborg
- Re: [phobos] datetime review Denis
- Re: [phobos] datetime review Jacob Carlborg
- Re: [phobos] datetime review Jonathan M Davis
- Re: [phobos] datetime review Denis
- Re: [phobos] datetime review Andrei Alexandrescu
- Re: [phobos] datetime review Jonathan M Davis
- Re: [phobos] datetime review Denis
- Re: [phobos] datetime review Andrei Alexandrescu
- Re: [phobos] datetime review Yao G.
- Re: [phobos] datetime review Andrei Alexandrescu
- Re: [phobos] datetime review Yao G.
- Re: [phobos] datetime review Andrei Alexandrescu
- Re: [phobos] datetime review Yao G.
- Re: [phobos] datetime review Philippe Sigaud
- Re: [phobos] datetime review Andrei Alexandrescu
- Re: [phobos] datetime review Walter Bright
- Re: [phobos] datetime review Andrei Alexandrescu
