Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 "Go" popup menu should highlight best case

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
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.

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