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
 1549: Extract Method
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

khb
Tomato Guru

Germany
337 Posts

Posted - Mar 21 2007 :  03:16:31 AM  Show Profile  Reply with Quote
Assume I have the following code in C++ (already stripped down):
  int function;
  f(function);
If I now use Extract Method on the second line, I just get:
  MyMethod();
So the parameter is ignored. This only happens if the parameter is called function. If I rename it, it works.

I'm using build 1549 for VC6.0 and VS2005 on Win XP.

Regards,
Marcus.

feline
Whole Tomato Software

United Kingdom
19001 Posts

Posted - Mar 21 2007 :  11:44:43 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=5606

It seems part of VA thinks "function" is a keyword, which is why this, and several other problems with it, are happening.

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