Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Create From Usage Inside IF statement fails

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
TudorT Posted - Feb 24 2011 : 1:28:57 PM
if(characters->PlayerTeamIsOnBottom()) {
...
}

The suggestions is always a function returning void inside even simple statements as the above. It would be nice if the line of code was parsed to generate the required return value type.

Also, as an enhancement, can the dialog box (the place to review the name of the class member function / variable) include 3 grouped push buttons for: private, protected, and public? That would be awesome. Especially if the function / variable is placed appropriately.
7   L A T E S T    R E P L I E S    (Newest First)
support Posted - Mar 17 2011 : 11:47:06 PM
case=55527 is fixed in build 1845
accord Posted - Feb 25 2011 : 8:13:59 PM
Just to clear up: it seems that the default visibility for a newly created member function for the same class will be private which makes perfect sense for me. So my original post about it wasn't accurate.
TudorT Posted - Feb 25 2011 : 11:19:37 AM
I can live with Windows style checkboxes even though plain button style on-off ones are easier to hit with the mouse and they distract less from the task at hand. I have only limited memory space in my brain for keyboard shortcuts though :P.
accord Posted - Feb 24 2011 : 8:12:45 PM
Thank you for sharing your ideas. I have added them to the case. I think, however, that checkboxes with shortcuts works. For example, try Find Symbol dialog and press alt+c: it toggles the checkbox, the focus stays in the editbox and I think it is absolutely not disturbing. I like it
TudorT Posted - Feb 24 2011 : 7:50:50 PM
I am mostly using the style of rapidly typing a new algorithm part which includes several names of not yet created functions and many times I am working on a public function while the newly typed function calls should be private. I think that if you present a minimal dialog with push buttons (instead of the hard to hit default windows style checkboxes), this would not be intrusive. You can select the button which corresponds to the visibility type of the function in which "create from usage" is applied to. And yes, I know about VA Outline's facility.
accord Posted - Feb 24 2011 : 7:11:38 PM
We are considering to improve Create from usage to respect private/public in C++:

case=29902

Currently the logic would be to create a member with the same visibility that the embracing member function has, or to create as public if the new member function will be created in a different class. What do you think? Our policy is to avoid increasing the complexity of the GUI where it is reasonable so we can keep it as simple & clean as it is possible.

In the meantime, are you aware that you can use VA Outline to drag-and-drop symbols (e.g. a newly created member function) which will make Visual Assist to move the corresponding function automatically in the source as well? You can use it as a "workaround" until this enhancement will be done.
accord Posted - Feb 24 2011 : 7:01:56 PM
I have put in a feature request to create method which returns bool if called from inside parentheses:

case=55527

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