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
 Feature Requests
 Remove =0/abstract during "Create implementation"
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

__Daniel__
Senior Member

Poland
36 Posts

Posted - Jan 20 2012 :  03:13:18 AM  Show Profile  Reply with Quote
Hello.
"Implement Virtual Methods" is veeeery goood.
But very often I copy virtual methods from interface to my class, like:

void Test1() = 0;
void Test2() abstract;

and do "Create implementation".
Next i remove "= 0" or "abstract" and inster "override".
Maybe VA can do it?

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Jan 20 2012 :  7:23:24 PM  Show Profile  Reply with Quote
Are you aware of the Implement Interface refactoring command, which is designed to help here?

http://www.wholetomato.com/products/features/implementInterface.asp

You can set this to add the override keyword with a registry key:

http://docs.wholetomato.com?W346

For me, when I trigger Create Implementation on the class member function:

virtual void testMemberZero() = 0;

the "= 0" is removed from the implementation. I have put in a bug report for "abstract" not being removed:

case=64152

since that would clearly be a useful improvement.

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

__Daniel__
Senior Member

Poland
36 Posts

Posted - Jan 23 2012 :  01:08:27 AM  Show Profile  Reply with Quote
From implementation: yes, but not from declaration.
After create implementation in declaration "=0/abstract" is not needed ( more: undesirable :) )
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Jan 23 2012 :  12:03:54 PM  Show Profile  Reply with Quote
It is valid, and sometimes useful to give an abstract function an implementation. VA has no way of knowing if you want to keep your function abstract, or stop it being abstract, just because you have given it an implementation.

Is this something you often do? Converting an abstract function to a non abstract function?

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

support
Whole Tomato Software

5566 Posts

Posted - Feb 29 2012 :  1:18:43 PM  Show Profile  Reply with Quote
case=64152 is fixed in build 1901 (same fix as case=3293)

Edited by - support on Feb 29 2012 1:21:14 PM
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