Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 BUG: Name resolution problems

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
guest Posted - Oct 11 2010 : 11:16:13 AM
This shows multiple issues with VA's name resolution. I could not make a simple test case for the second problem, but it seems to be an issue related to load order, and although it is fixed by reloading the project in this example, I have seen larger projects where reloading or rebuilding the databases does not work. Tested with build 1833.

Steps to reproduce:

1.) Create a new project with an empty source file
2.) Paste this at the top of the file:
namespace Foods
{
   class Muffin
   {
   };
}

Muffin::T_1;
::Muffin::T_1;


You should now have something that looks like:



Notice the the first line referencing "Muffin" resolves incorrectly:



3.) Paste this either before or immediately after the Foods namespace:
namespace Muffin
{
   enum
   {
      T_1,
      T_2,
      T_3,
      T_4
   };
}


The result is:





1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Oct 12 2010 : 03:48:41 AM
About "Muffin" resolves incorrectly: Yes, it's a little bit odd, but should not cause any problems in real-life, since you didn't use "using namespace". Normally it shouldn't have been recognized at all. Thank you for pointing this out, though. It may cause problems in other circumstances.

About the other problem: unfortunately, class named same as namespace confuses parser is a known problem:

case=1384

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