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
 1531: Create Implementation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

khb
Tomato Guru

Germany
337 Posts

Posted - Aug 09 2006 :  10:32:52 AM  Show Profile  Reply with Quote
Please consider the following class:
class A
{
public:
    virtual ~A();

    void B();

protected:
    A();

    void C()
};
Note, that I forgot the semicolon behind C(). After calling Create Implementation on C() I got:
class A
{
    :
    virtual ~A();
    
    void B()
        
        :
    A();
    
    void C() A::C() void B() protected: A()
    {
        
    }
Please let me add, that Create Implementation works perfectly for B(), no matter whether I put a semicolon behind it or not. Of course, it also works for C() when adding the semicolon.

VC6, Win XP, no further add-ins.

Regards,
Marcus.

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Aug 09 2006 :  9:23:07 PM  Show Profile  Reply with Quote
interesting

i have noticed that some refactoring operations are simply not offered to me when i have mistakes in my classes. the main one i seem to keep running into is no return type, and i cannot get Create Implementation offered to me at all.

the parser does seem more "sensitive" to the code when doing refactoring, but that makes sense when you think about it.

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

khb
Tomato Guru

Germany
337 Posts

Posted - Aug 10 2006 :  02:58:56 AM  Show Profile  Reply with Quote
Feline, I don't know if I got you correctly. Can you reproduce the problem? If so, is this problem worth a case to fix? Of course, I applied refactoring to an incomplete line, but it is quite confusing when VA generates that much rubble in this case.

Regards,
Marcus.
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Aug 11 2006 :  12:13:07 AM  Show Profile  Reply with Quote
I believe this is a duplicate of http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=4894

case=1567

Joe Pizzi
Go to Top of Page

khb
Tomato Guru

Germany
337 Posts

Posted - Aug 11 2006 :  02:14:49 AM  Show Profile  Reply with Quote
Yes, thank you Joe, it's exactly the same problem.

Regards,
Marcus.
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