Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Type-aware proposing of names for completion

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
BruteForce Posted - Aug 01 2008 : 08:06:18 AM
I am not sure whether VA does this trick, but I have noticed more than once the past days.

Take the following overly simplified example:

bool CFireiXCamera::IsFrameRateSupported
(
FIREi_PIXEL_FORMAT a_FireiPixelFormat,
FIREi_RES a_FireiResolution,
FIREi_FPS a_FrameRate
)
{
return m_pImpl->IsFrameRateSupported(a_FireiPixelFormat,
a_FireiResolution,
a_FrameRate);
}

This one just forwards a function call to the abstract base class of the implementation object. Both IsFrameRateSupported functions have exactly the same signature.

When I have typed "return m_pImpl->IsFrameRateSupported(" and then press "a", Visual Assist could match the type of the expected parameter against the types of the available variable names that start from "a" and propose the correct one as the default.
However, VA will propose to me a_FrameRate for all 3 parameters.

Warm Regards,
Dimitris Staikos
Unibrain
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Aug 01 2008 : 5:51:02 PM
We are considering something similar:

case=7200 (suggest all function parameters in one go based on variables with matching names)

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