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
 change signature fails
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Michal Puczynski
Ketchup Master

Poland
85 Posts

Posted - Jun 21 2011 :  04:50:08 AM  Show Profile  Reply with Quote
When a method is declared in a class using fully qualified name, change signature produces invalid method name in implementation.
(using VA 1848).

class A
{
void A::test(void *p);
}

change signature: test(void *p, int &k) -> results in:

void A::A( void *p, int &k )
{

}

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Jun 21 2011 :  2:04:42 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=58291

Out of interest, why are you using fully qualified names for the function declarations? I don't think I have ever seen anyone do this before.

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

Michal Puczynski
Ketchup Master

Poland
85 Posts

Posted - Jun 22 2011 :  06:47:44 AM  Show Profile  Reply with Quote
Yeah, that is a rare case. The only use case making sense is to change protection on a method when deriving from a class.
The one I found in my code was however a copy-paste from implementation.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Jun 23 2011 :  10:17:08 AM  Show Profile  Reply with Quote
Thank you for the update, it is good news that this is not to common in your code, given this problem.

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