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
 Technical Support
 Sugestion
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bsaksida
New Member

Slovenia
6 Posts

Posted - Dec 29 2006 :  04:14:50 AM  Show Profile  Reply with Quote
When using extract method, coud you also give an option to replace all methods with a function name, within a scoop, within function or within class.

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Dec 29 2006 :  08:52:01 AM  Show Profile  Reply with Quote
I don't understand what you are asking for.

Extract method pulls out a single block of code, so there is only one place to update, which is the place where this new function is called from.

zen is the art of being at one with the two'ness
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 30 2006 :  12:29:58 AM  Show Profile  Reply with Quote
I may now what bsaksida thinks. (For example Ref++ have this feature.)

Let see what I mean:

void Something(void)
{
int a = Q*X*G*2;
int b = Q*X*G*5;
}

When I choose extract method for "Q*X*G", VAX could replace all occurrence of this expression after a question or something. For example you can place a checkbox to the extract method dialog to replace other occurrences of this expression in the same scope. If no other occurrence(s) found the checkbox should be disabled.

(Sometimes when I cloning some line of code by copy-paste and later I using Extract Method, I have to find and replace the other occurences of these lines. It's no great matter, just mentioned )
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Dec 30 2006 :  6:30:27 PM  Show Profile  Reply with Quote
This is a very interesting extension of Extract Method I have put in a feature request for this.

case=4313

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