T O P I C R E V I E W |
studoot |
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. |
1 L A T E S T R E P L I E S (Newest First) |
feline |
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 |
|
|