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
 Fail safe rename
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jwiesemann
Junior Member

14 Posts

Posted - Oct 22 2007 :  11:10:03 AM  Show Profile  Reply with Quote
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

feline
Whole Tomato Software

United Kingdom
18950 Posts

Posted - Oct 22 2007 :  1:58:18 PM  Show Profile  Reply with Quote
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

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

hotzenplotz
Senior Member

Austria
34 Posts

Posted - Oct 29 2007 :  12:56:45 PM  Show Profile  Reply with Quote
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.

Use the source, Luke!

Edited by - hotzenplotz on Oct 29 2007 12:57:29 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18950 Posts

Posted - Oct 29 2007 :  1:45:26 PM  Show Profile  Reply with Quote
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.

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