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
 Placing cursor after function with no arguments
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

xMRi
Tomato Guru

Germany
315 Posts

Posted - Feb 04 2004 :  10:38:23 AM  Show Profile
Think of a function of a class that takes no arguments (like std::list begin).
Typing
std::list<int> x;
x.beg<tab>

places the cursor between the pharentesis:
x.begin(I)
why not behind it:
x.begin()I

Martin


Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming

support
Whole Tomato Software

5566 Posts

Posted - Feb 04 2004 :  8:03:16 PM  Show Profile
For the most part, VA X places the text caret after the () when there are no arguments. Your case is an exception. Just type the right parenthesis -- it will overwrite the one inserted.

Whole Tomato Software, Inc.
Go to Top of Page

xMRi
Tomato Guru

Germany
315 Posts

Posted - Feb 06 2004 :  02:29:08 AM  Show Profile
Why is there this exception? I know about the overwrite chance, but wouldn't it be good to place the caret behind the parenthesis?
Martin ;-)

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Feb 06 2004 :  1:30:07 PM  Show Profile
We agree it would be good for VA X to be smarter in this case. Instead of being vague, we should have said the problem won't get fixed in the short term.

Whole Tomato Software, Inc.
Go to Top of Page

xMRi
Tomato Guru

Germany
315 Posts

Posted - Feb 10 2004 :  09:11:33 AM  Show Profile
Again: Very nasty!

Type:
CString str;
str.CompareNoCase()I

Caret is placed behind ()!
CString is used very often, also here the expansion does not work (I know CString is a template too now).

ACK: It would be good if VA X would be smarter!
But anyhow VA X is an absolute perfect utility!

Martin

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000