Actually let me look that up. I'm not sure if it's converted to the type of the actual LValue, or if the parameters of the right hand value are converted to the type of the leftmost value of the right hand value.
Hmm, it's not real clear from the site...as this is the example posted:
He says this
When performing a mathematical operation between two values of a different type (for example, adding a Real to an Integer, inserting an Integer inside a String), the right-hand value is converted to the same type as the left-hand value.
But given that the only example is the one above, where there is no true "LValue" it's hard to say from what he's said. Either way it just doesn't seem wise to ever automatically convert into a less precise type when it comes to numbers. That's what explicit casts are for.
So until I grab a copy of the demo I don't know if "left value" means the left most value of an RValue or the actual LValue, or both.
Hmm, it's not real clear from the site...as this is the example posted:
MessageBox( 1 + 3.4 + 0.4 ) // 3.4 is converted to 3 // 0.4 is converted to 0 // the total value 1 + 3 + 0 is converted to the string "4" and displayed
He says this
When performing a mathematical operation between two values of a different type (for example, adding a Real to an Integer, inserting an Integer inside a String), the right-hand value is converted to the same type as the left-hand value.
But given that the only example is the one above, where there is no true "LValue" it's hard to say from what he's said. Either way it just doesn't seem wise to ever automatically convert into a less precise type when it comes to numbers. That's what explicit casts are for.
So until I grab a copy of the demo I don't know if "left value" means the left most value of an RValue or the actual LValue, or both.