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
 create new function or method
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

vjedlicka
Junior Member

21 Posts

Posted - Oct 22 2013 :  07:09:34 AM  Show Profile  Reply with Quote
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

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Oct 22 2013 :  1:38:31 PM  Show Profile  Reply with Quote
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?

zen is the art of being at one with the two'ness
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