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
 1624 Alt+G fails on class
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jan 15 2008 :  10:39:31 AM  Show Profile  Reply with Quote
When a class has the same name as a namespace, VAX does not recognize the name as a class anymore, but always as the namespace.

Example: create a namespace "myTest" containing a class "myTest", now derive a class from myTest in the same or another namespace. Alt+G does not longer jump to the class, but offers a list of files where the namespace is defined.

In my case I have a sub-namespace Filter containing a class Filter which is the base for about 50+ other classes in namespaces under this one (like Uniwares.xxx.xxx.Filter.FilterTypeX) thus I get a menu of 50+ file locations to choose from on Alt+G.

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Jan 15 2008 :  1:38:03 PM  Show Profile  Reply with Quote
There must be something more to this. I have the following simple test case. I have this code in a header file:

namespace SpaceClassDuplicateName
{
	class SpaceClassDuplicateName
	{
		virtual int getWidth() const;
		virtual int getHeight() const;
	};

	class CDerifedFromDuplicate : public SpaceClassDuplicateName // alt-g here works correctly
	{
		virtual int getWidth() const;
		virtual int getHeight() const;
	};
};

and this code in the matching cpp file:

static void testDuplicateName()
{
	// alt-g here on both namespace and class works correctly
	SpaceClassDuplicateName::SpaceClassDuplicateName foo;
	foo;
}

and as the comments describe, alt-g is working correctly for me.

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

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jan 18 2008 :  12:08:52 PM  Show Profile  Reply with Quote
Seems to be working now in 1626.
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