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
 Feature Requests
 Type-cast suggestion
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

znakeeye
Tomato Guru

379 Posts

Posted - Jan 04 2008 :  4:01:15 PM  Show Profile  Reply with Quote
Consider this:
LPPOINT p = (LPPOINT)wParam;
Yes, a simple type-cast. Wouldn't it be nice if you could enter this:
LPPOINT p = LPPOINT)
That is, skip the first parenthesis and then enter a closing ')'... and then VAX automatically adds the opening '('. I can't think of another scenario than a type-cast here.

You might suggest the "Select the word and enter '('"-feature, but I really hate that. It gives me more problems than it is useful.

What do you think?

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Jan 05 2008 :  1:48:05 PM  Show Profile  Reply with Quote
Do you have:

VA Options -> Advanced -> Correction -> insert () and closing } ) ] ' "

turned on? If so you only need to type a single bracket, but the opening bracket rather than the closing bracket.

What happens when you are casting the parameter to a function call?
What happens when your type contains a space, e.g. long long or int *? It is not always clear where to place the opening bracket, and especially not if you are in the middle of a total re-write of the current line.

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

znakeeye
Tomato Guru

379 Posts

Posted - Jan 07 2008 :  03:56:19 AM  Show Profile  Reply with Quote
You've got a point!
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