[phobos] RFC: units type for D

David Simcha dsimcha at gmail.com
Wed Aug 25 19:37:12 PDT 2010

  One comment I want to make is that, if we're going to include this, I 
have a rational number library on Scrapple that I've been meaning to put 
up for review for a while.  I noticed that you roll your own somewhat 
ad-hoc rational numbers for the units type and don't really expose them 
in any more general way.  IMHO if both rational and the units lib make 
the cut for Phobos, they should be integrated with each other.  I'll 
clean up my rational library and do a commit, since it's succumbed to 
some degree of bit rot.  It's at 

On 8/25/2010 10:09 AM, Benjamin Shropshire wrote:
> I have offered up a library that supports statically encoding units in 
> the type system so as to prevent unit errors (adding distance and 
> time) and to enforce correct conversions all around.
> http://d.puremagic.com/issues/show_bug.cgi?id=3725
> I'm looking for comments: What's holding it back from inclusion? What 
> would need to be improved? The API? Better comments? (I haven't tested 
> it recently so; make it build again?)
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos

More information about the phobos mailing list