Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Got Implementation Issue

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
guyv Posted - Jan 26 2006 : 6:10:52 PM
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,
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - Jan 27 2006 : 12:43:18 AM
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.
guyv Posted - Jan 26 2006 : 6:32:33 PM
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,

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