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
 "Go" popup menu should highlight best case
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

andre.horst
Tomato Guru

Germany
150 Posts

Posted - Nov 19 2007 :  08:49:37 AM  Show Profile  Reply with Quote
The "Go" popup menu should highlight the best applicable case of a overloaded method, so i can jump directly to the right method.

feline
Whole Tomato Software

United Kingdom
18948 Posts

Posted - Nov 19 2007 :  09:49:28 AM  Show Profile  Reply with Quote
How do you define the best overload? VA does not know which overload to choose, which is why it lists all of them.

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

andre.horst
Tomato Guru

Germany
150 Posts

Posted - Nov 19 2007 :  11:41:37 AM  Show Profile  Reply with Quote
The best overload is the one which number of parameters and types correspond. F.e.
void f( int ) ; // Version 1
void f( double, double ) ; // Version 2
differs in both, parameter count and type, so a call to
f( 1.1, 1 ) ;
should "Go" preferred to Version 2.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18948 Posts

Posted - Nov 19 2007 :  1:53:00 PM  Show Profile  Reply with Quote
This fails quite quickly, as soon as you consider default parameters and implicit cast's for the parameter type. We have to consider the edge cases, since they seem to make up a large portion of real world code

Currently VA's parser does not understand which overload you are calling, but when it does (this is something we are planning) alt-g will be able to go directly to the correct overload.

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