Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Confusion when class and namespace name the same.

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
turkeypotpie Posted - Jun 19 2006 : 9:27:10 PM
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.
3   L A T E S T    R E P L I E S    (Newest First)
jpizzi Posted - Jun 20 2006 : 02:18:54 AM
I am seeing the same thing.

case=1384
turkeypotpie Posted - Jun 20 2006 : 12:55:00 AM
I'm already using build 1524.
support Posted - Jun 19 2006 : 11:27:48 PM
We believe the problem is fixed in build 1524.

http://www.wholetomato.com/downloads/VA_X_Setup1524.exe

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