On Wednesday, 5 September 2012 at 05:03:38 UTC, Simen Kjaeraas
wrote:
Not mine, but this is the implementation I use:
https://github.com/klickverbot/phobos/tree/units/std
Files are units.d and si.d.
Documentation:
http://klickverbot.at/code/units/std_units.html
http://klickverbot.at/code/units/std_si.html
Fascinating how similar this looks to my (completely independent)
implementation.
I noticed two flaws in std.units:
1) Can't add quantities of the same type (this is probably
trivial to fix).
2) Different scopes don't make different quantity types.