
22 Aug
2006
22 Aug
'06
7:48 a.m.
"Deane Yang" <deane_yang@yahoo.com> wrote in message news:ecd87h$brg$1@sea.gmane.org...
Eric Lemings wrote:
This brings up a good question. Say you have two objects:
meters m = 1; feet f = 2;
What is the type (or unit) of the following expression?
m + f;
I apologize for repeating myself, but I want this to fail to compile. I do not want implicit conversion of units. I believe I am not completely alone in this view.
The ability to prevent implicit conversions is now available in Quan CVS in the code on the two_param-branch: http://quan.cvs.sourceforge.net/quan/ The functionality is enabled by commenting out the nacro as described here: http://tinyurl.com/khk8z Let me know if that meets your needs. regards Andy Little