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
 Member variables get highlighted as locals
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

redwyre
Starting Member

1 Posts

Posted - Feb 03 2004 :  02:11:15 AM  Show Profile
Member variables get highlighted as locals when they have the same names as function parameters

void Foo(int asdf)
{
m_bar.asdf = 0; // asdf is bold as if it was a local variable
}

support
Whole Tomato Software

5566 Posts

Posted - Feb 03 2004 :  11:21:06 AM  Show Profile
Sigh. Our coloring algorithms are not that smart. They do have not a sense of context. They only guess.

See the section "Coloring by Usage" at http://www.wholetomato.com/x/products/features/color.html?more=yes

We will try to improve our coloring to account for your example.


Whole Tomato Software, Inc.
Go to Top of Page

Baga
Tomato Guru

122 Posts

Posted - Feb 03 2004 :  1:13:57 PM  Show Profile
In some sense member varibles are locals - meaning that you don't declare them:

struct A
{
  int mID;
  
  void Reset() { mID = 0; }
};
But that have nothing to do with function parameter names though...
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000