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
 refactor "rename" broken for nested structs
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jfreeman
Junior Member

22 Posts

Posted - Nov 17 2006 :  2:28:38 PM  Show Profile  Reply with Quote
In the following example, if you rename "count" in s1, it renames "count" in s2 as well (and s2's references to count).

struct s1 {
struct {
int count;
} embeddedStruct;
};

struct s2 {
struct {
int count;
} embeddedStructXXX;
};

void f()
{
s1 x1;
s2 x2;
x1.embeddedStruct.count++;
x2.embeddedStructXXX.count++;
}

This is very important to me as I have a large body of existing code to refactor that has this pattern in many places. Should I file a bug report?

build 1540; VS2005 C++

Jim

jfreeman
Junior Member

22 Posts

Posted - Nov 17 2006 :  2:49:35 PM  Show Profile  Reply with Quote
I just noticed Find References on this symbol fails in the same way -- it finds references that are to the variable of the same name in the other nested struct.

Jim
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Nov 17 2006 :  4:19:49 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.
Rename calls Find References to get the list of references to rename, so if you find a bug in Find References then it will also effect rename.

case=3690

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

support
Whole Tomato Software

5566 Posts

Posted - Nov 24 2006 :  9:23:19 PM  Show Profile  Reply with Quote
Case 3695 is fixed in build 1541.
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Nov 25 2006 :  5:09:38 PM  Show Profile  Reply with Quote
quote:
Case 3695 is fixed in build 1541.

Umm. Was this posted in the wrong thread, or a typo?

Joe Pizzi
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Nov 26 2006 :  1:37:04 PM  Show Profile  Reply with Quote
Typo. Good catch.

Cases 3690 and 3695 are fixed in build 1541.
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