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

mwb1100
Ketchup Master

82 Posts

Posted - Aug 24 2007 :  12:15:30 AM  Show Profile  Reply with Quote
A recent request to reorder method definitions according to how they are ordered in the class declaration caused me to think that it might be nice to have VAX able to put a contructor's initialization list in its proper order.

I like my init lists to be in the order that the inits will actually occur (ie., the order the members are declared in the class) as all good init lists should be, but I hate actually doing the work to make it so. If VAX could do this for me, I'd appreciate it.

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Aug 24 2007 :  09:23:33 AM  Show Profile  Reply with Quote
An interesting idea, I have put in a feature request for this:

case=8368

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

fmaddin
New Member

6 Posts

Posted - Aug 06 2008 :  5:14:57 PM  Show Profile  Reply with Quote

Our company would really like to have this feature and I would like to add to this and make dealing with initializer lists easier in general.

* Alt-G on a member variable in the header file would take you to the initializer list, and vice versa.
* An AddInitializer function to add them as they are created in the header file. Or an AddMemberHere function for the header that does it all.
* Perhaps a function to highlight missing initializers and/or add default() intitializers for the missing ones. I wouldn't care if it didn't compile, I could fill in the correct params.


Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Aug 08 2008 :  08:52:07 AM  Show Profile  Reply with Quote
We are considering creating an initialization list:

case=10622

I have some concerns about this idea for alt-g. If this was done, people are going to ask why alt-g goes not offer the member variable when it is set inside a constructor.

Find References, or perhaps Find References in File should help if you just need to locate all references to the member variable.

zen is the art of being at one with the two'ness
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