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
 VAX 1223: minor coloring glitch
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Mar 26 2004 :  1:23:07 PM  Show Profile
Given two functions and two classes, function 1 uses class 1 and function two uses class 2. Both classes are defined before any function.

e.g.:
class class1{ somefunc(); }; 
class class2{ somefunc(); };

void function1(){ class1 c1; c1.somefunc(); }
void function2(){ class2 c2; c1.somefunc(); }
As you see here, function2 uses incorrectly the var name c1 which is defined in function1 only. Yet, syntax coloring shows both c1 uses as known, regular variables but somefunc() in function2 is red underlined and colored in black.
VAX should recognize the scope and color c1 as unknown variable instead.
  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