D Language 2.0

BCS none at anon.com
Mon Jan 18 11:43:54 PST 2010


Hello Walter,

> Daniel wrote:
> 
>> I also kind of hoped we'd see standard real world unit types in D.
>> Like sqft, meters, ohms, kg, L, Hz, seconds,
>> 
>> etc. native to D.  Being able to intrinsically convert types between
>> these things would make D the most
>> 
>> approachable General Programming Language for real world problems.
>> 


> Here it is:
> 
> // by Oskar Linde Aug 2006

It might be a case of NIH, but that doesn't handle fractional units (for 
example MPa*m^1/2 is used in fracture mechanics and I suspect that they are 
fairly common as intermediate values in solving equations in odd directions).





More information about the Digitalmars-d mailing list