Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Change signature may break the code

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
nodet Posted - Oct 11 2007 : 09:51:57 AM
Hi all,

Using 10.3.1561.0.
Consider the following piece of code (note that the parameter does not have the same name in the declaration and the definition):

class A {
int f(int i);
};

int A::f(int j) {
return j;
}

Using 'Change signature' on A::f to add make the method 'const' will break the code because the parameter will use the name of the declaration ('i') instead of the one of the definition ('j').

Note that if the method was declared without a parameter name, Visual Assist will also break the code by removing the name of the parameter in the definition.

In the 'Change signature' dialog, I'd rather use the way the method is defined, instead of the way it's declared. If possible, I would also try to avoid changing parts of the declaration that do not have to be changed (here, changing the name is not needed).
2   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Nov 18 2013 : 3:17:09 PM
Change Signature was overhauled in build 2007.
case=9327 is fixed in build 2007.
feline Posted - Oct 11 2007 : 2:40:34 PM
Oops. I am seeing the same effect here. Thank you for the clear description.

case=9327

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