Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Variables with same name as functions

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
mkipper Posted - Dec 23 2010 : 3:26:56 PM
VAX cannot figure out that I'm using foo as a variable in the example below; it colours it as if it's a function, not a variable.
I don't think this is expected behaviour.



void foo(int param)
{
	int foo = 0;
	int bar = 0;
	foo = bar = 7;
	return foo + bar;
}
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Dec 27 2010 : 5:00:43 PM
I am seeing the same effect here. Thank you for the clear description.

case=19889

To a degree this is a known problem. The basic problem is that our coloring code has to run very quickly, to keep up with scrolling through the code. So it is possible to confuse our coloring code, using the same name for different things in the same file is a way to do this.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000