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

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
ElonNarai Posted - Jun 04 2009 : 07:40:14 AM
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.
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 14 2011 : 2:34:40 PM
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.
stormtroopa Posted - Oct 14 2011 : 07:18:01 AM
Are those cases still an issue?
I'd like to see those features implemented!
feline Posted - Jun 04 2009 : 1:41:22 PM
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.

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