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

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
jwiesemann Posted - May 12 2011 : 03:51:13 AM
Hi,

in below example VA will complete the name with superflous parentheses:

----

#define _( text ) L##text

class wxString
{
public:
wxString( const wchar_t * );
};

namespace jwx
{
class ResText
{
public:
ResText(const wxString& keydomain, const wxString& key, const wxString& defaulttext);

/// Get resource text
const wxString& Get() const;

};
}


jwx::ResText ArgText(_("CommandLine"), _("SwitchText"), _("Write default texts to file"));


void main()
{
Ar
}
---

When placing the cursor after the "Ar" and typing "g" VA will suggest "ArgText". When hitting tab it will complete to "ArgText()". But there is no operator () for this static object. (I was rather about to type ".Get" but first have to delete the parentheses.)

Joachim
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - May 12 2011 : 9:49:25 PM
I am seeing the same effect here. I have put in a bug report for this:

case=57420

Thank you for the clear description.

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