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
 #include files that are already included
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Frunobulax
Ketchup Master

84 Posts

Posted - Mar 25 2008 :  05:38:29 AM  Show Profile  Reply with Quote
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

"The nice part about being a pessimist
is that you are constantly being either
proven right or pleasantly surprised."
(George F. Will)

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Mar 25 2008 :  10:43:24 AM  Show Profile  Reply with Quote
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.

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