
26 Mar
2007
26 Mar
'07
9:24 p.m.
AMDG Deane Yang <deane_yang <at> yahoo.com> writes:
Please take everything I say with a gigantic salt crystal, but I would want to forbid an expression like "inches * miles / furlongs". You might recall that I am one of the few who wants explicit unit casting.
I prefer explicit too. The expression "inches * miles / furlongs" doesn't do any conversion. It returns a type that encodes the combination. If you want the result in inches you have to explicitly cast. In Christ, Steven Watanabe