www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: null references redux + Looney Tunes

Rainer Deyke:

 Either I'm missing something, or this system only checks units at
 runtime (which would make it both slow and unsafe).
 
 Boost.Units (C++) checks units at compile time.  There is no reason why
 D could not use the same approach.
http://blogs.msdn.com/andrewkennedy/archive/2008/08/29/units-of-measure-in-f-part-one-introducing-units.aspx Bye, bearophile
Oct 10 2009