Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 create new function or method

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
vjedlicka Posted - Oct 22 2013 : 07:09:34 AM
when I type in a call to a nonexisting method, VA offers creating that method for me. Sometimes it creates a method (class member), sometimes it creates a function.

How can I designate which should be created?

Thanks
Vaclav
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 22 2013 : 1:38:31 PM
VA tries to work out where the new method should go from context, and if it cannot tell for sure, it will ask in the dialog.

So if you are calling the method on a class member variable, VA knows the new method has to be a class member. If you are calling the method from within a free function, one that is not a member of any class, then VA makes a free function.

But if you call the method from within a class method then VA asks what you want, since it could be either a member of the current class, or a free function.

Does this make sense, and does it match what you are seeing in your code?

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