On 07/06/2012 18:49, Joseph Rushton Wakeling wrote:
Sorry for the double-post -- I already asked this in d-learn, but this may be a 
better
place to ask.

What's the current state of affairs and roadmap for inclusion of rational 
number support
in D?

Including it in D seems very unlikely.

Including it in Phobos, OTOH, is another matter.

I've come across David Simcha's work:
http://cis.jhu.edu/~dsimcha/d/phobos/std_rational.html

... and a feature request on the bugzilla:
http://d.puremagic.com/issues/show_bug.cgi?id=7885
<snip>

Well, do these work at the moment?

If so, I suggest you use one of them for now. If you're mainly just doing simple arithmetic with them, it probably wouldn't be too much work to convert your code to use the Phobos rational type when/if it gets one.

Stewart.

Reply via email to