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
 Incorrect coloring in "typedef" statement
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Achilles
Starting Member

1 Posts

Posted - Mar 10 2005 :  3:48:18 PM  Show Profile
Hi, VAX members

I found that if the following code involving a "typedef" statement can not be colorized correctly in VAX.

typedef int *FUNC(int);

FUNC fn;

fn(0);

in C++ syntax, the above code defines a new data type FUNC which is a function pointer, hence it should be blue(in default color theme) , but in current release of VAX, it is brown which is the color of a method. Another problem is that a symbol in the same document may be displayed as different colors when it appears at different places. In the above code, when defined as a variable of type FUNC, fn is gray; but when it is used as a function/method, it is brown(in default color theme). I think VAX can support the function pointer in a better way, such as displaying the parameter information window of a function pointer.

regards,

A

  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