Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Type-cast suggestion

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 - Jan 04 2008 : 4:01:15 PM
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?
2   L A T E S T    R E P L I E S    (Newest First)
znakeeye Posted - Jan 07 2008 : 03:56:19 AM
You've got a point!
feline Posted - Jan 05 2008 : 1:48:05 PM
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.

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