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
 Constructor initializer list
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

andre.horst
Tomato Guru

Germany
150 Posts

Posted - Jun 20 2012 :  03:53:00 AM  Show Profile  Reply with Quote
I would like to have a "Create constructor" refactoring, that have all members in its initializer list in the right order. If VAX is a bit smarter, than it would take only the required members to the initializer list, f.e. the integral types, pointers and objects, that require a specific ctor call.

Additionally a "sort" for the initializer list corresponding to the right order in the class declaration woiuld be nice or even an "Add missing members to initializer list" would be nice.

foxmuldr
Tomato Guru

USA
384 Posts

Posted - Jun 20 2012 :  5:28:50 PM  Show Profile  Reply with Quote
Agree.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Jun 21 2012 :  10:46:35 AM  Show Profile  Reply with Quote
We are considering adding a command to do this at some point. There are a couple of feature requests for this. One to create the contructor's initialization list with default values or comments:

case=10622

and one to sort the contructor's initialization list into the declared in class order:

case=8368

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

jwiesemann
Junior Member

14 Posts

Posted - Dec 29 2014 :  04:35:05 AM  Show Profile  Reply with Quote
I think a single create/update command would be sufficient and reduce your work:

Create a complete list in correct order in memory and insert the already existing values to the appropriate members. This would without any addtional effort sort the list.

In oppostite to the OP I would suggest to implement all members into the list, even the ones with default contructors: I may want to use a different constructor and had again to search to the correct position. An empty initializer is at least a part of documentation.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jan 13 2015 :  6:31:55 PM  Show Profile  Reply with Quote
Thank you. I have updated the case with your ideas.
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