Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Constructor oddity

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
znakeeye Posted - Jul 08 2009 : 03:48:32 AM
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?
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Jul 09 2009 : 02:47:40 AM
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

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