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
 . to -> bug
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tom_seddon
Tomato Guru

162 Posts

Posted - Mar 21 2006 :  7:23:25 PM  Show Profile  Reply with Quote
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)
}

rhummer
Tomato Guru

USA
527 Posts

Posted - Mar 21 2006 :  8:01:02 PM  Show Profile  Reply with Quote
case=524

It's in the list of things to fix.

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - Mar 22 2006 :  5:46:14 PM  Show Profile  Reply with Quote
support have bumped the priority on this for you, but unfortunately we still cannot give you an estimate of when it will be done.

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

support
Whole Tomato Software

5566 Posts

Posted - Apr 14 2006 :  11:26:15 PM  Show Profile  Reply with Quote
Fixed in build 1445.
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