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
 1626: "Create Declaration" for class in namespace
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

o2a
Junior Member

24 Posts

Posted - Mar 31 2008 :  10:45:45 AM  Show Profile  Reply with Quote
Hi,

there is a small bug with "Create Declaration" for classes in namespaces:

namespace TestSpace
{
	class TestClass
	{
		// void TestClass::test1();
		// void test2();
		// void test3();
	};

	void TestClass::test1()	{}
	void TestSpace::TestClass::test2()	{}
}
void TestSpace::TestClass::test3()	{}

If you try "Create Declaration" on the above implementations of member functions, the result is as in the comments. I would consider the 'TestClass::' qualifier in front of the declaration of 'test1()' superfluous, even if it seems to be correct syntax. As you can see, this behaviour depends on the use of the full qualified identifier for the implementation.

Furthermore the other way around the "Create Implementation" option of VAX is disabled if you try it on the excessively qualified 'test1()' declaration which is unexpected too.

And last but not least it would be great to have an option to control the "target" of "Create Implementation", i.e. if the implementation should be created inside the class'es namespace without extra qualifier (like 'test1()') or outside the namespace with full qualification (like 'test3()'). The second option is the only available behaviour for current versions of VAX.

And before I forget to mention it (although I think this has been discussed before): Please don't forget that bug where a suggestion is added after the abbreviation instead of replacing it.
(e.g. newMa| -> suggestion: newMarker -> result after accepting: newManewMarker)

feline
Whole Tomato Software

United Kingdom
17384 Posts

Posted - Apr 02 2008 :  7:23:54 PM  Show Profile  Reply with Quote
I am seeing the same effect here with Create Declaration. Thank you for the clear description.

case=6593


The problems with suggestions being appended, are you seeing this often? Can you reproduce it on demand?

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

o2a
Junior Member

24 Posts

Posted - Apr 03 2008 :  08:10:05 AM  Show Profile  Reply with Quote
quote:
Originally posted by feline
The problems with suggestions being appended, are you seeing this often? Can you reproduce it on demand?



Not that often, but quite persistent if it happens. Can't reproduce it right now, and can't remember where exactly I've seen it the last time. I'll take a closer look if it happens the next time.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jun 03 2013 :  2:04:57 PM  Show Profile  Reply with Quote
case=6593 is fixed in build 1940
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Sep 25 2013 :  4:39:18 PM  Show Profile  Reply with Quote
case=6593 nested namespace issue is fixed in build 2001.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2021 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000