null references redux + Looney Tunes
Rainer Deyke
rainerd at eldwood.com
Mon Oct 5 05:54:15 PDT 2009
Nick Sabalausky wrote:
> I've been thinking it might be nice to have both. Compile-time for obvious
> reasons but then also run-time ones that could do conversions:
>
> auto velocity = convert(meter/second)(distance / time); // Actual
> runtime-conversion
I'm pretty sure Boost.Units already does this, although in general it's
probably better to stick with SI units in your code and only perform
conversions on input/output.
--
Rainer Deyke - rainerd at eldwood.com
More information about the Digitalmars-d
mailing list