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
 Create impl namespace on return type.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cbranch
Senior Member

USA
30 Posts

Posted - Jun 06 2008 :  6:16:10 PM  Show Profile  Reply with Quote
Using 1640 VS2003SP1

I'm noticing that the namespace is improperly being added for functions that return the Type of a class they are a member of.

Example*


namespace Foo
{
   class Test
   {
      Test test();
   };
}


When I create implementation from top to bottom I get this:


namespace Foo
{
   Foo::Test Test::test()
   {
   }
}


I believe that technically that implementation is returning Foo::Foo::Test. This may resolve on most compilers but it appears wrong. However I haven't reviewed the ISO spec on namespace resolution to verify that. It seems that VAX knows whether it is in a namespace block when it creates an implementation, it could check all types being added and if they are in said namespace do not append the explicit namespace.

Thoughts?

Colin Branch

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 07 2008 :  10:23:01 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=6130
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