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
 Confusion when class and namespace name the same.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

turkeypotpie
Junior Member

15 Posts

Posted - Jun 19 2006 :  9:27:10 PM  Show Profile  Reply with Quote
If a class has the same name as its namespace, then visual assist gets confused.

Using an example --

In header file:

namespace Foo
{
    class Foo
    {
        void fooMeth();
    };
}


In cpp file:

namespace Foo
{
    void Foo::fooMeth()
    {
        int yup = 42;
    }
}


The following problems arise:
1. fooMeth is marked as an invalid symbol. Using GotoImplementation on fooMeth in the source file doesn't work.
2. Using GotoImplementation on 'Foo' in the line:
void Foo::fooMeth()

will go to the namespace Foo, rather than the class Foo. This can be bad if there are several header files that use the Foo namespace.


Interestingly, autocompleting,
Foo::Foo::fooMe...

works just fine.

This is obviously not the biggest bug in the world, though it has come up a few times in our codebase.

support
Whole Tomato Software

5566 Posts

Posted - Jun 19 2006 :  11:27:48 PM  Show Profile  Reply with Quote
We believe the problem is fixed in build 1524.

http://www.wholetomato.com/downloads/VA_X_Setup1524.exe
Go to Top of Page

turkeypotpie
Junior Member

15 Posts

Posted - Jun 20 2006 :  12:55:00 AM  Show Profile  Reply with Quote
I'm already using build 1524.
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Jun 20 2006 :  02:18:54 AM  Show Profile  Reply with Quote
I am seeing the same thing.

case=1384

Joe Pizzi
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