Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 #include files that are already included

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
Frunobulax Posted - Mar 25 2008 : 05:38:29 AM
Hi,

nothing spectacular, but in C++ it would be nice if VAX wouldn't offer to include files (in the suggestion box) that are already included in this file.

Regards, tv
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Mar 25 2008 : 10:43:24 AM
That is an interesting idea, and I do see the appeal.

I can see a couple of possible problems. Firstly how do we define "already included"? It sounds easy, but what about:

#ifdef LINUX
#include <foo.h>
#endif

is "foo.h" already included or not? Conditional includes are a little nasty, but also somewhat common.

Secondly, when you type something like:

#include "../dir1/|"

VA lists all of the include files in this directory.

Thinking more about this, you can also have the same header file in different directories. Normally this should not be a problem, but it is an edge case we need to consider.

I like this idea, I am just not sure how to make it work correctly.

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