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" and virtual methods
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MrDoomMaster
Tomato Guru

251 Posts

Posted - Nov 27 2007 :  1:18:00 PM  Show Profile  Reply with Quote
VAX Build: 1519
IDE: Visual Studio 2008 (VS9)

Hi,

Consider the following C++ code example below:


class Foo
{
public:
	virtual void MyFunc( int val ) = 0;
}

class Bar : public Foo
{
public:
	virtual void MyFunc( int val )
	{
	}
};

class FooBar : public Bar
{
	virtual void MyFunc( int val )
	{
	}
};


If I do "Change Signature" on Foo::MyFunc(), it does not apply whatever changes I make to the derived versions of the virtual method. I think it should make these changes, ESPECIALLY in the case where you have a pure virtual involved (However it should recursively modify the derived versions of the virtual signature regardless of if it is pure virtual or not).

If you do a "Find References" on Foo::MyFunc(), it gives you the derived versions in the search results. So VAX obviously is capable of finding the derived virtual overrides.

It would make sense to have "Change Signature" also apply any changes I make to BASE AND DERIVED matching virtual function signatures. Note that this does not apply to non-virtual overrides.

Scenarios:
- If I "Change Signature" on Foo::MyFunc(), both Bar::MyFunc() and FooBar::MyFunc() are modified as well.
- If I "Change Signature" on Bar::MyFunc(), both Foo::MyFunc() and FooBar::MyFunc() are modified as well.

feline
Whole Tomato Software

United Kingdom
17256 Posts

Posted - Nov 27 2007 :  3:15:50 PM  Show Profile  Reply with Quote
We are considering doing this at some point:

case=3373

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

accord
Whole Tomato Software

United Kingdom
3277 Posts

Posted - Nov 30 2007 :  1:22:56 PM  Show Profile  Reply with Quote
It will be the most useful refactoring improvement!
Go to Top of Page

MrDoomMaster
Tomato Guru

251 Posts

Posted - Nov 30 2007 :  1:27:07 PM  Show Profile  Reply with Quote
quote:
Originally posted by accord

It will be the most useful refactoring improvement!



I beg to differ. I personally believe comment wrapping would be the most useful, however that's a little out of the scope of this thread.

Edited by - MrDoomMaster on Nov 30 2007 1:27:33 PM
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3277 Posts

Posted - Nov 30 2007 :  1:31:21 PM  Show Profile  Reply with Quote
quote:
Originally posted by MrDoomMaster

quote:
Originally posted by accord

It will be the most useful refactoring improvement!



I beg to differ. I personally believe comment wrapping would be the most useful, however that's a little out of the scope of this thread.



Comment wrapping will be new feature, rather than improvement

Edited by - accord on Nov 30 2007 1:32:41 PM
Go to Top of Page

MrDoomMaster
Tomato Guru

251 Posts

Posted - Nov 30 2007 :  1:32:45 PM  Show Profile  Reply with Quote
quote:
Originally posted by accord

It will be a new feature, rather than improvement


Good point. I misread :)
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Nov 18 2013 :  3:25:59 PM  Show Profile  Reply with Quote
Change Signature was overhauled in build 2007 and now supports changes to a class hierarchy.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000