Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Refactoring: Create Overload without Parameter

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Curtis Posted - Dec 12 2007 : 2:51:51 PM
When creating classes often times we write a method with several parameters. We then want to write simplified overloads of those same methods.

Create a refactoring that, when the cursor is on a parameter, gives the option of creating a method without that parameter. In the new method call the existing method with the default value (from the type's constructor).
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Dec 13 2007 : 3:11:03 PM
This sort of exists, if you trigger "Add Similar Member" on the function.

Picking up the default constructor for the type is not that reliable, not all types have default constructors. What about "int", "float", "void *" and structures?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000