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
 Feature Requests
 Pushing fields up and down through heirarchy
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tomkulaga
Senior Member

25 Posts

Posted - Jul 15 2015 :  6:55:09 PM  Show Profile  Reply with Quote
Hi do you have any plans to support pushing variables(fields) up and down the inheritance hierarchy?

one exmaple is this

class C : B
{
C()
jump();

}

class B : A
{
B()

}


class A
{
A()

}

when coding class 'C' i realise that I want it to have a "name variable" passed into the constructor, and i realise that the base class A can also have it.

Id like to make a constructor for class C ->

C(std::string name)

and for VA to be able to propagate it through the constructors of B and A and make it a field in the bottom most class?

Another use case is the function jump();

It would be nice for VA to be able to refactor it by either sending the implementation into the base class or sending it to base class, making it virtual and overriding it in class C.

Edited by - tomkulaga on Jul 15 2015 7:44:47 PM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 15 2015 :  10:42:09 PM  Show Profile  Reply with Quote
We're planning to add push up/pull down refactoring at some point:

case=1121

I have put in a feature request to create a virtual method in base class:

case=90867

We are considering to add a refactoring that would create class constructor that initializes selected class members:

case=14340

I have added the idea to be able to select variables from base classes as well. I think that also creating the variable would be to specific and we already have a refactoring for that: Add Member.
Go to Top of Page

tomkulaga
Senior Member

25 Posts

Posted - Jul 15 2015 :  11:22:16 PM  Show Profile  Reply with Quote
Awesome thanks.
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