On 10/11/10 0:22 CDT, Yao G. wrote:
On Sun, 10 Oct 2010 23:36:13 -0500, Andrei Alexandrescu
<[email protected]> 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.
Sorry if that came across harshly. I meant all that as an actual list of
action items, not as a naysay of your work.
Andrei
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos