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
 typedefs color struct variable incorrectly
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cgough
Senior Member

27 Posts

Posted - Aug 27 2007 :  11:25:15 AM  Show Profile  Reply with Quote
I think the typedef thing has been discussed in other topics but not quite like this.

class T
{

public:

protected:

private:

typedef struct X
{
int m_y;
int m_z;
}m_C;

struct Y
{
int y;
int z;
}m_Y;

};

m_C does not match the color of m_Y

Thanks
Chris

VA_X.dll file version 10.3.1559.0 built 2007.07.06
VAOpsWin.dll version 1.3.2.4
VATE.dll version 1.0.5.8
DevEnv.exe version 7.10.3077.0
msenv.dll version 7.10.3077.0
Font: Bitstream Vera Sans Mono 11(Pixels)
Comctl32.dll version 5.82.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
Single processor





feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Aug 27 2007 :  2:40:49 PM  Show Profile  Reply with Quote
I am seeing the same thing here, but what is "m_Y"? It is not coloured as a type, but I cannot use it as a type. I added a constructor to the class to test this, and both statements:

m_Y foo;
struct m_Y boo;

fail to compile. Since this seems to suggest it is not a type, why should it be coloured as a type?

This is testing with VS2005.

zen is the art of being at one with the two'ness
Go to Top of Page

cgough
Senior Member

27 Posts

Posted - Aug 27 2007 :  4:55:34 PM  Show Profile  Reply with Quote
Doh!
In my rushed state I goofed this up. Thanks for setting me on the right path. Bad day today...

Very very sorry.
Chris

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Aug 28 2007 :  08:05:21 AM  Show Profile  Reply with Quote
That's OK, these things happen

I was wondering if I was supposed to understand that code. Even after a fair bit of experience I come across C++ code that confuses me every now and then

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000