studoot
Senior Member
35 Posts |
Posted - Dec 21 2006 : 06:08:52 AM
|
I've just done my first 'extract method' in C++, and was disappointed to see the method implementation in the header file. Would it be feasible to have some method of getting the implementation in a .cpp file instead. I'm thinking some thing like this :- If the larger method that you're extracting code from is in a header, insert the new method's implementation there. If the larger method is in a .cpp file, insert the new method's implementation in that .cpp file. |
|
feline
Whole Tomato Software
United Kingdom
19021 Posts |
Posted - Dec 21 2006 : 07:29:55 AM
|
This is by design. Unless we ask lots of questions, or have far to many options, we can never satisfy everyone. So VA's refactoring is designed to work in small steps that can then be "chained together" to produce what ever final result you want.
In this case you want Extract Method followed by Move Implementation to Source File |
zen is the art of being at one with the two'ness |
|
|