Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Constructor initializer list

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
andre.horst Posted - Jun 20 2012 : 03:53:00 AM
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.
4   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Jan 13 2015 : 6:31:55 PM
Thank you. I have updated the case with your ideas.
jwiesemann Posted - Dec 29 2014 : 04:35:05 AM
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.
feline Posted - Jun 21 2012 : 10:46:35 AM
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
foxmuldr Posted - Jun 20 2012 : 5:28:50 PM
Agree.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000