Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1533: '.' not converted to '->' after cast

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
kurt Posted - Aug 28 2006 : 8:07:00 PM
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.
2   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Sep 02 2006 : 12:10:49 PM
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.
rhummer Posted - Aug 28 2006 : 11:26:44 PM
I'm seeing the same thing doing '.' yeilds no suggestion list, but if I manually type '->' I get a suggestion list.

case=2276

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000