Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 More control over extract method
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

nagates
Senior Member

29 Posts

Posted - Feb 29 2012 :  11:48:50 AM  Show Profile  Reply with Quote
would it be possible to have more control over the extract method dialog, such as be able to pass stuff as const &(ref), and be able to add and or remove parameters, and dump the function into the same working file?

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Feb 29 2012 :  8:42:43 PM  Show Profile  Reply with Quote
Extract Method is designed to work out the number and type of parameters required by the new method, and will pass these automatically. Any extra parameters will not actually be used by the new method initially, so the Extract Method dialog seems a slightly odd time to add them. You can always add and change parameters afterwards via Change Signature.

If you remove parameters then the extracted function will be invalid, so why do you want to do this in the extract method dialog?

Which file is the function appearing in, if it is not appearing in the same working file? This is what the "Extract to Source" check box at the bottom of the Extract Method dialog is for, to specify if you want the extracted code in the cpp or .h file.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000