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
 Rename doesn't change comments
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

graham.reeds
Ketchup Master

United Kingdom
51 Posts

Posted - Jun 12 2007 :  08:39:08 AM  Show Profile  Reply with Quote
Using the rename doesn't change the comments.

Most modern refactoring IDE's have an option to change the comments as well.

This also should be an option in VAX.

Thanks, G.

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jun 12 2007 :  08:56:03 AM  Show Profile  Reply with Quote
Currently this is by design. We are considering having rename search the comments, but what happens when the parameter name you are renaming is a common word? VA cannot assume that all instances of this word, in all comments in all files should be renamed.

case=3565

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

graham.reeds
Ketchup Master

United Kingdom
51 Posts

Posted - Jun 12 2007 :  09:03:12 AM  Show Profile  Reply with Quote
That is true. I'll have a look tonight what Netbeans does in this situation, though I suspect that it will splurge all over the comments with the rename.

How often do you use a common word for a variable and not a compound made of several?

On the side of changing comments, the renaming of comments will allow 3rd party references to change too (as in @CMyClass in Doxygen)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jun 12 2007 :  09:08:08 AM  Show Profile  Reply with Quote
Parameter names, if you are avoiding "Hungarian" format (a discussion I do not intend to get into ) then "common" names can turn up quite often. Bool parameters like "print" or "create" immediately come to mind.

A related situation is three functions in a row, all taking a parameter with the same name. This is fine, so long as you know which comments go with which functions, but there are cases where this is not clear.

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