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
 structs within structs
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

squidge
Junior Member

23 Posts

Posted - Sep 01 2005 :  06:33:28 AM  Show Profile
With the following in a header file:


typedef struct
{
	struct
	{
		int should_not_see_me;
	} should_see_me;
	int should_see_me2;
} mytype;


You would expect that "should_not_see_me" would only be visible inside the "should_see_me" structure.

With the following code:


mytype a;

a.


You would expect VAX to show 'should_see_me' & 'should_see_me2', but it shows all members of 'should_see_me also', which is confusing, as they are local to 'should_see_me', and thus not accessible directly from 'a':



VAX shows a padlock on the inaccessible members, so I can only assume that VAX recognises this, but decides to show it anyway? Is this due to misconfiguration at my end?

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 01 2005 :  2:46:56 PM  Show Profile
interesting effect. i would definitely say this was a bug.

case=730

if you enable:
VA Options -> text editor -> listboxes -> get content from default intellisense
then you get the correct items in the listbox. however you may find that you prefer to leave this turned off.

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