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
 Type-aware proposing of names for completion
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

BruteForce
Senior Member

Greece
32 Posts

Posted - Aug 01 2008 :  08:06:18 AM  Show Profile  Reply with Quote
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

When all else fails try common sense.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 01 2008 :  5:51:02 PM  Show Profile  Reply with Quote
We are considering something similar:

case=7200 (suggest all function parameters in one go based on variables with matching names)
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