Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Create impl namespace on return type.

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
cbranch Posted - Jun 06 2008 : 6:16:10 PM
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?
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Jun 07 2008 : 10:23:01 AM
I am seeing the same effect here. Thank you for the clear description.

case=6130

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