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
 Technical Support
 'Local symbols in bold' misbolds
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jmihalicza
Ketchup Master

Hungary
66 Posts

Posted - Nov 22 2007 :  04:10:22 AM  Show Profile  Reply with Quote
It seems the bolding only does a simple pattern matching rather than a deeper semantic analysis to find the identifiers to bold.
Installing the newer version (thanks for the version check feature, that is cool) I tried to enable Max coloring options and faced the problem immediately.
It is a frequent case that the name of local symbols match the name of members in different structures.
I simplified the situation and made a test case:
void* x;
complex().x;
At least in cases where the type of the member is different the bold is definitely unwanted. I also would like members with the same name in other structures unbolded even if the type is the same, because of the primary purpose of the feature in my understanding.
I (would like to) use this feature to have a quick overview, to clearly see where the incoming parameters (and the local variables) are used. I would also like the possibility of visually differentiate these two kinds.

An other approach could say that same name suggests the same concept, and therefore should be highlighted to show the possible logical connection. I don't like this approach, because it is simply not useful, and can fail more times than to be worth using, relying on it.

Just checked the new features and found VA Outline. What an amazing stuff. How much I suffered of analyzing nested #if structures figuring out what happens. Great idea and it seems after 2-3 minutes that it will be my favorite view not only for preprocessing items but for general code structure. Again a very valuable addition.

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Nov 22 2007 :  1:15:38 PM  Show Profile  Reply with Quote
The basic problem is that the colouring code has to run very fast, to keep up when you scroll. Also we are doing the colouring behind the IDE's back, which complicates matters a bit.

Still this is a problem if you have duplicate names like this:

case=10071

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