feline
Whole Tomato Software
United Kingdom
19023 Posts |
Posted - Sep 30 2006 : 11:41:16 AM
|
i have seen VA generate a return type in my code. not all of the time, certainly, but it does happen.
this is a reasonable idea, but it will run into problems if the extracted code has no need to return a value. what happens if the extracted code needs to modify two variables, so they are both passed in as references?
plus it introduces an extra dialog. the design principle behind VA's refactoring is to use a set of very "small" tools, and then let the user chain them together however they want.
in this case i would suggest using extract method, and then using Change Signature afterwards to add the return type. |
zen is the art of being at one with the two'ness |
|
|