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
 1522: :: expands incorrectly
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MrJones4u
Ketchup Master

83 Posts

Posted - Jun 15 2006 :  3:54:07 PM  Show Profile  Reply with Quote
Hi,
when typing :: VAX expands it to :_GetBaseClass:

When typing :: after e.g. a class name it depends on the VAX's understanding of the class (I guess that the _GetBaseClass part may vary from project to project type).

so typeing something like:
CTimeline_Occurrence::ERepeatType::eeInterval
ends up being:
CTimeline_Occurrence::ERepeatType:_GetBaseClass:eeInterval
and sometimes even:
CTimeline_Occurrence:_GetBaseClass:ERepeatType:_GetBaseClass:eeInterval


Using: VS6

Good Luck!

cu,
Michael

PS: Apart from the "minor" bug this is some cool stuff!

Edited by - MrJones4u on Jun 15 2006 3:54:57 PM

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Jun 15 2006 :  5:53:42 PM  Show Profile  Reply with Quote
if you look here:

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=4772

does this seem to be the same as the first problem described in this thread?

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

MrJones4u
Ketchup Master

83 Posts

Posted - Jun 15 2006 :  6:04:50 PM  Show Profile  Reply with Quote
Jupp....

sure does!

cu,
Michael
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Jun 17 2006 :  12:30:02 PM  Show Profile  Reply with Quote
case=1331

from your description it looks like you are typing the implementation for a class member function. i have been using the refactoring beta long enough now that i never do this

for this specific case using "Create Implementation" should be a very nice work around. however there are still times when you will run into this bug, but hopefully it will be fixed soon.

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

MrJones4u
Ketchup Master

83 Posts

Posted - Jun 17 2006 :  1:42:24 PM  Show Profile  Reply with Quote

I'm actually trying to type an enum member identifier of an enum which is defined within a class - so without entering the :: I can't access the enum. Same for stuff in namespaces. Luckly I encounter these type of situation only ever so often. Guys using STL must go nuts...

CTimeline_Occurrence::ERepeatType::eeInterval

as in:
class CTimeline_Occurrence
{
public:
   enum ERepeatMode
   {
      .
      eeInterval,
      .
   }  m_eRepeatMode;

   .
   .
}
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Jun 17 2006 :  3:18:08 PM  Show Profile  Reply with Quote
*ah*, well it was a good theory while it lasted

so far this bug is only showing up in VC6, which is something. i have flagged this as urgent and needing to be fixed soon, for obvious reasons.

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

support
Whole Tomato Software

5566 Posts

Posted - Jun 26 2006 :  12:44:13 AM  Show Profile  Reply with Quote
Fixed in build 1525.
Go to Top of Page

Staffan
Junior Member

Sweden
13 Posts

Posted - Jun 26 2006 :  4:31:33 PM  Show Profile  Reply with Quote
However, it is not standard compliant C++ to qualify with the Enum name.

CTimeline_Occurrence::eeInterval is OK.
CTimeline_Occurrence::ERepeatType::eeInterval is a violation.

see http://msdn2.microsoft.com/en-us/library/ms173704.aspx.

Regards

/Staffan
Go to Top of Page

MrJones4u
Ketchup Master

83 Posts

Posted - Jun 26 2006 :  4:38:13 PM  Show Profile  Reply with Quote

Yes, guess so... sad only that the VC6 does not know that ... Not doing it for fun.

cu,
Michael
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Jun 27 2006 :  4:52:18 PM  Show Profile  Reply with Quote
*sigh* personally i like the non compliant form, it is a lot easier to see what you are doing when working with a library class that contains 15 enum types.

that compiled cleanly for me in VS2003, but VS2005 produces a warning, and my UNIX C++ compiler does not compile it at all.

zen is the art of being at one with the two'ness
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