Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Fail safe rename

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
jwiesemann Posted - Oct 22 2007 : 11:10:03 AM
When renaming a symbol VA should look into it's symbol list and ask the user whether he is sure about the new name if the new symbol already exists there.

Joachim
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 29 2007 : 1:45:26 PM
A good example, I like this

Unfortunately I am wondering what effects implementing this would have. You would need to check every parameter, every local and global variable, in every function (and file for globals) where the class member variable is used.

My main concern at the moment is the edge cases. If people start to rely on this, and they will, they are going to expect it to be accurate and robust. I am wondering how easy it would be to achieve this.
hotzenplotz Posted - Oct 29 2007 : 12:56:45 PM
I think he might mean a case like this:

void foo::bar(int a)
{
   m_a = a;
}

Now imagine you're in the .h(pp) file, and want to rename foo::m_a to foo::a.
I think VAX should detect cases where the rename produces that kind of ambiguity and at least warn the user.
feline Posted - Oct 22 2007 : 1:58:18 PM
Are you talking about renaming classes?
For renaming local variables, class members (functions and variables), and various other cases you will often want and have duplicate names.

Even renaming classes, namespaces complicates visibility.

It is an interesting idea, but it needs a bit of thought before I put in a feature request

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