L
Lieven De Foor
Guest
[quote user="Brian K. Maher"] Lieven, One more thing .. in your sample code above the method is designed to change the value of its parameter. Your call to the method is simply doing what, logically, you would expect it to do. Why is that so wrong? Yes .. I understand that from looking at the code, it is not obvious from the method call that the value will be changed but again, we are doing what you actually want done. [/quote] I agree, this is a stupid example. I wrote the simplest code trying to demonstrate what happens. I could have written something that would cause unwanted effects on the caller side by not anticipating a changed value in the variable, but I didn't spend time on that. [quote user="Brian K. Maher"] I would agree with adding this to a 'strict compile' option. Brian [/quote] Great! Lieven
Continue reading...
Continue reading...