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
 Got Implementation Issue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

guyv
New Member

4 Posts

Posted - Jan 26 2006 :  6:10:52 PM  Show Profile  Reply with Quote
Hi,

The Goto Implementation does not seem to like class that are declared as follows:


#define DCLASS class

DCLASS MyClass 
{
public:
    void foo(bool b);
}

main()
{
    foo( );
}


If I move the cursor to the foo() method that is in main(), the Goto Implemeebtation does not work. It just bing me to the beginning of the line.

If I replace DCLASS by 'class', then all's well. I suspect that visual assist does not handle this situation.

Regards,

guyv
New Member

4 Posts

Posted - Jan 26 2006 :  6:32:33 PM  Show Profile  Reply with Quote
Oops. Soory about the bad code. Here is a snipit that I actually tried!!!


#define DCLASS class

DCLASS MyBaseClass
{
public:
    void Test( );
};

DCLASS MyClass : public MyBaseClass
{
public:
    void foo(bool b);
};

main()
{
    MyClass a;
    a.foo(false);
    a.Test();
}


Again, if I move the cursor to the foo() method in main(), the Goto Implementation does not work. The definition list box shows 'MyClass a' instead of the function declaration. An when I execure the goto it simply brings me to the beginning of the line.

Regards,
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jan 27 2006 :  12:43:18 AM  Show Profile  Reply with Quote
Your observation is correct. VA X does know that a preprocessor macro resolves to a keyword.

Part of the issue is VA X trying to decide if the person reading code wants to know if something is a FOO or to what FOO resolves. Your example is quite simple so it's fair to say one should see "class." A more complicated example might leave one wanting to see "DCLASS." (Similar things apply in other definitions. Maybe "class" is an exception of some sort???)

We need to think about this one for a bit. We'll do some more testing as well.
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