Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1624 Alt+G fails on class

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
Uniwares Posted - Jan 15 2008 : 10:39:31 AM
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.
2   L A T E S T    R E P L I E S    (Newest First)
Uniwares Posted - Jan 18 2008 : 12:08:52 PM
Seems to be working now in 1626.
feline Posted - Jan 15 2008 : 1:38:03 PM
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.

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