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
 Constructor oddity
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

znakeeye
Tomato Guru

379 Posts

Posted - Jul 08 2009 :  03:48:32 AM  Show Profile  Reply with Quote
VAX 1649, VS 2008 SP1, XP SP3.

class CMyClass
{
public:
CMyClass() {}
};
Later when you type the class name, you get weird suggestions:
CMyClass.<enter>
yields
CMyClass.CMyClass()

CMyClass....
yields
CMyClass.CMyClass.CMyClass.CMyClass.

Seriously... :P

1) The dot should not produce any suggestions here.
2) The constructor is never a valid suggestion, or?

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 09 2009 :  02:47:40 AM  Show Profile  Reply with Quote
This is a valid code and compiles:

class CMyClass
{
public:
	CMyClass()
	{
		int apple;
		apple=5;
	}
};

void Func()
{
	CMyClass::CMyClass();
}


Call Func() and you can debug what happens
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