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
 Copy documentation from parent class
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

SWeini
New Member

2 Posts

Posted - Sep 10 2006 :  1:55:12 PM  Show Profile  Reply with Quote
Hi!

I'm new to VAX and searching for a feature, but couldn't find it in the options or a hint in the forum. This is my problem:

Having these two classes ...

class CParent {
public:
// function foo
virtual void foo () = 0;
};
class CChild : public CParent {
public:
virtual void foo ();
};

... I want to show the documentation of CParent::foo in the tooltip while typing ...

CChild *p;
p->foo

... like it's shown while typing ...

CParent *p;
p->foo

Is there a way to achieve this without copying the comments?
If it can't be done, please think about implementing it. Should be a simple check whether member documentation exists and go up the class tree searching for a documentation.

Bye,
SWeini

(Using Visual Studio 2005, C++, VAX Build 1534)

Edited by - SWeini on Sep 10 2006 1:59:39 PM

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 10 2006 :  5:35:41 PM  Show Profile  Reply with Quote
this is not something that VA currently does. this is a sensible idea

there is the possible problem that if the child class makes a significant change to what the method does - then the comment will be wrong. so long as the tooltip clearly states the class it got the comment from this should not be to much of a problem.

i have put in a feature request

case=2453

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

jpizzi
Tomato Guru

USA
642 Posts

Posted - Sep 10 2006 :  6:29:18 PM  Show Profile  Reply with Quote
quote:
there is the possible problem that if the child class makes a significant change to what the method does
True, but the Liskov Substitution Principle says you shouldn't do that :)

Joe Pizzi
Go to Top of Page

SWeini
New Member

2 Posts

Posted - Sep 11 2006 :  06:05:33 AM  Show Profile  Reply with Quote
Thanks!

Where are the cases listed? Where can I See when it's done? Sorry for that stupid question but I couldn't find them.

SWeini
Go to Top of Page

rhummer
Tomato Guru

USA
527 Posts

Posted - Sep 11 2006 :  08:52:48 AM  Show Profile  Reply with Quote
Those are for our own tracking, so we can quickly update the threads when they are fixed :)

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

Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Sep 11 2006 :  11:02:27 PM  Show Profile  Reply with Quote
...and, when it is fixed, we will post here.

Joe Pizzi
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 16 2006 :  3:27:26 PM  Show Profile  Reply with Quote
quote:
Originally posted by jpizzi

True, but the Liskov Substitution Principle says you shouldn't do that :)



i don't recognise that fancy name, but i would have called it "common sense". still, when has that stopped anyone? *rolls eyes*

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

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 16 2006 :  3:30:20 PM  Show Profile  Reply with Quote
quote:
Originally posted by SWeini

Thanks!

Where are the cases listed? Where can I See when it's done? Sorry for that stupid question but I couldn't find them.

SWeini



it is a reasonable question, and comes up fairly often

one useful approach is to keep an eye on the history of changes, that is updated with each new build.

http://www.wholetomato.com/support/history.asp

we get quite a lot of suggestions, so it can take a long time before a given suggestion is implemented.

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