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
 Smarter initializer list IntelliSense C++
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ElonNarai
New Member

2 Posts

Posted - Jun 04 2009 :  07:40:14 AM  Show Profile  Reply with Quote
In C++ I often use the initializer list, setting everything to their default values. What I really would like to see is that when you ask for suggestions for the initilizer list, it will only show those that aren't already used in the initilizer list.

Assuming the following structure
struct SDemoStruct
{
   int m_TimeDuration;
   int m_TimeDelay;

   SDemoStruct();
};


Since I'm a lazy programmer (when it comes to writing) I often press tab when I think it's fine. So it does happen that I generate the following illegal code

SDemoStruct::SDemoStruct() : m_TimeDelay(0), m_TimeDelay(0) {}


The solustion (besides paying attention ;) ) is that when Visual Assist X detects it is in an initilizer list it will remove those already initilized (at least in auto-suggest) so that it prevents those from showing up.

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Jun 04 2009 :  1:41:22 PM  Show Profile  Reply with Quote
We are considering a couple of features in this area that might be more useful for you:

case=8368 - sort contructor's initialization list into declared in class order

case=10622 - create contructor's initialization list with default values or comments

the second one, default values, is clearly going to be tricky for complex types, but if we get either of these working well they should prove very helpful.

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

stormtroopa
Junior Member

11 Posts

Posted - Oct 14 2011 :  07:18:01 AM  Show Profile  Reply with Quote
Are those cases still an issue?
I'd like to see those features implemented!
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Oct 14 2011 :  2:34:40 PM  Show Profile  Reply with Quote
Both features are still on the list of features we are looking to add to VA. There are a lot of feature requests, and sometimes it is tricky to prioritise which ones to look at first.

You are not the only person asking about both of these, which should help.

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