null references redux + Looney Tunes

bearophile bearophileHUGS at lycos.com
Sat Oct 10 15:15:55 PDT 2009


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.

In F#, compile time checks shown by the IDE too:
http://blogs.msdn.com/andrewkennedy/archive/2008/08/29/units-of-measure-in-f-part-one-introducing-units.aspx

Bye,
bearophile



More information about the Digitalmars-d mailing list