RFC: Units of measurement for D (Phobos?)

D.Enguiyen via Digitalmars-d digitalmars-d at puremagic.com
Tue Mar 15 07:46:30 PDT 2016


On Tuesday, 15 March 2016 at 09:13:10 UTC, Nordlöw wrote:
> On Monday, 14 March 2016 at 09:04:28 UTC, Nordlöw wrote:
>> http://klickverbot.at/code/units/std_units.html
>> http://klickverbot.at/code/units/std_units.html#PrefixSystem
>
> No module name in Phobos is currently in plural form. I suggest 
> we stick to that standard a name these
>
> std.experimental.unit
> std.experimental.unit.si
>
> One thing. How should these modules be represented on the file 
> system?
>
> Destroy!

Is it able to manage quantities with a non-linear 
transformations, for example when dealing with octet and byte ?

(1024)!"byte" == 1!"kbyte";




More information about the Digitalmars-d mailing list