Boost.units ported to D

Arlen arlen.ng at gmx.com
Mon Feb 11 14:32:53 PST 2013


On Mon, Feb 11, 2013 at 4:18 PM, develop32 <develop32 at gmail.com> wrote:

> How about something like meters!15 or newtons!30? For me it is more
> pleasing and shorter than multiplication.
>

'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'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130211/f01095c6/attachment.html>


More information about the Digitalmars-d mailing list