<p><br>
> On Sunday, July 15, 2012 05:30:55 Jay Norwood wrote:<br>
> > I see from this other discussions that it looks like 2.059 ( or<br>
> > maybe 2.060) does support something like <a href="http://3.cm">3.cm</a>().   Not sure from<br>
> > the discussion if it would also accept <a href="http://3.cm">3.cm</a> as in the xtext/xtend<br>
> > example.</p>
<p>Hi Jay,<br></p>
<p>I had a little fun with coding a units (SI units) system in D and pushed an incomplete version on Github a few weeks ago:</p>
<p><a href="https://github.com/PhilippeSigaud/Units">https://github.com/PhilippeSigaud/Units</a></p>
<p>It allows things like:</p>
<p>auto distance = <a href="http://100.km">100.km</a>;<br>
auto speed = <a href="http://120.km/hour">120.km/hour</a>;</p>
<p>auto timeToDestination = distance/speed; // timeToDest is a time (seconds)</p>
<p>The version on Github is grossly limited (it's just a sketch), but it gives an idea of what's possible. My goal is to code a generic unit system generator, given user inputs such as a list of units and sub-units.</p>

<p>cheers,</p>
<p>Philippe<br>
 </p>