Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 typedefs color struct variable incorrectly

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
cgough Posted - Aug 27 2007 : 11:25:15 AM
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





3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 28 2007 : 08:05:21 AM
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
cgough Posted - Aug 27 2007 : 4:55:34 PM
Doh!
In my rushed state I goofed this up. Thanks for setting me on the right path. Bad day today...

Very very sorry.
Chris

feline Posted - Aug 27 2007 : 2:40:49 PM
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.

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