T O P I C R E V I E W |
andre.horst |
Posted - Nov 19 2007 : 08:49:37 AM The "Go" popup menu should highlight the best applicable case of a overloaded method, so i can jump directly to the right method. |
3 L A T E S T R E P L I E S (Newest First) |
feline |
Posted - Nov 19 2007 : 1:53:00 PM 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. |
andre.horst |
Posted - Nov 19 2007 : 11:41:37 AM 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. |
feline |
Posted - Nov 19 2007 : 09:49:28 AM How do you define the best overload? VA does not know which overload to choose, which is why it lists all of them. |