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
 Bug in autocomplete/suggest ?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

mnbush
Starting Member

United Kingdom
1 Posts

Posted - Feb 19 2005 :  05:54:40 AM  Show Profile
given the following code...

struct A {
	UINT val;
};

struct B {
	UINT valdifferent;
};

void somefunc
{
	UINT uType;

	switch (uType)
	{
	case 0:
		{
			B b;
			b.valdifferent;
		}
		break;
	case 1:
		{
			A b;
			A a;
			b.valdifferent;
			a.val;
				
		}
		break;
	}
}

in case 1, typing 'b.' brings up the auto complete box which shows the entry "valdifferent" rather than "val". VA seems to associate whatever was associated with 'b' first and maybe can't handle a variable of the same name being redeclared in a different scope? ( i typed in the code for case 0 first).

Is this a bug? or am i doing something wrong?

-matt.

feline
Whole Tomato Software

United Kingdom
18941 Posts

Posted - Feb 19 2005 :  6:11:30 PM  Show Profile
i am seeing the same thing. on the surface this is a bug, but it reminds me of a thread from a little while ago. memory is suggesting someone else posted the same bug, and support basically said that due to the way their high speed code parser works this was a know side effect.

of course, i now need to try and find the relevant thread to find out if i am remembering correctly or not.

zen is the art of being at one with the two'ness
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