Achilles
Starting Member
1 Posts |
Posted - Mar 10 2005 : 3:48:18 PM
|
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
|
|