Frunobulax
Ketchup Master
84 Posts |
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 |
"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
|
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 |
|
|