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
 1533: '.' not converted to '->' after cast
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kurt
Junior Member

15 Posts

Posted - Aug 28 2006 :  8:07:00 PM  Show Profile  Reply with Quote
In C, following a cast to a pointer type, '.' does not automatically change to '->'.

struct Bar;

struct Foo 
{
    int i;
};

void f(struct Bar* p)
{
    ((struct Foo*)p).i = 1;    /* '.' should change to '->' */
}

Problem has been the same in all of the recent betas that I have tried. Worked correctly in 1446.

Using VS 2005 with Courier New 10pt font, spaces for indention, Unix line ending, default character encoding (not Unicode, MBCS, etc), no other add-ins, US English version of Windows and VS.

rhummer
Tomato Guru

USA
527 Posts

Posted - Aug 28 2006 :  11:26:44 PM  Show Profile  Reply with Quote
I'm seeing the same thing doing '.' yeilds no suggestion list, but if I manually type '->' I get a suggestion list.

case=2276

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

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 02 2006 :  12:10:49 PM  Show Profile  Reply with Quote
kurt are you sure this used to work in VS 1446? i have just tried this in 1446, using both VS2003 and VS2005, and it is not working for me in either IDE.

i ask since if this was broken then this is probably a more important bug, since we try to avoid loosing existing functionality in the newer builds.

zen is the art of being at one with the two'ness
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