Boost.units ported to D
develop32
develop32 at gmail.com
Mon Feb 11 14:43:46 PST 2013
On Monday, 11 February 2013 at 22:33:02 UTC, Arlen wrote:
> 'meters!15' is supposed to be '15 * meters', right? Then how
> would you
> express '15 / meters' ? You cannot; therefore, 'meters!15'
> doesn't make
> sense.
>
> 15 * meters, has an outupt '15 m' which is short for '15 m^1'.
> The
> exponent is not shown when it's 1.
> 15 / meters, has an output '15 m^-1'
Oh, somehow that skipped my mind.
But 15 / meters could be meters!(15, -1). It suits me more as it
stands out of the whole expression and I would less likely make a
mistake while writing it.
More information about the Digitalmars-d
mailing list