T O P I C R E V I E W |
tom_seddon |
Posted - Mar 21 2006 : 7:23:25 PM This has been bugging me for *ages* (the whole time I've been using Visual Assist, basically), but it only just now happened whilst I've got a moment to post about it!
When programming in C++, . is not converted to -> if there is a * before the expression that evaluates to the pointer to the struct. But -> has a higher precedence than *, so this is never what you want. Indeed, the result is usually wrong!
You can surround the expression with () and get the right behaviour, so hopefully this is an easy one to fix :|
To reproduce, type the following in somewhere: (what you type is shown; explanations are in the comments)
struct x;
{ x *t;
t.x;//. converted to -> (correct) *t.x;//. left as-is (wrong) *(t).x;//. converted to -> (correct) }
|
3 L A T E S T R E P L I E S (Newest First) |
support |
Posted - Apr 14 2006 : 11:26:15 PM Fixed in build 1445. |
feline |
Posted - Mar 22 2006 : 5:46:14 PM support have bumped the priority on this for you, but unfortunately we still cannot give you an estimate of when it will be done. |
rhummer |
Posted - Mar 21 2006 : 8:01:02 PM case=524
It's in the list of things to fix. |
|
|