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
 Wrong Suggestion Offered When Type is Known
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

stevethresh
New Member

5 Posts

Posted - Jun 10 2009 :  11:47:49 AM  Show Profile  Reply with Quote
Why can't Visual Assist suggest the correct variable name in the following example:


struct FOO 
{
	char data[10];
};

struct BAR
{
	char data[10];
};

void zero_foo(FOO &foo)
{
	memset(&foo,sizeof(foo));
}

void zero_bar(BAR &bar)
{
	memset(&bar,sizeof(bar));
}

void do_stuff(void)
{
	FOO tmp_foo;
	BAR tmp_bar;

	zero_foo(tmp)// <- Typing tmp suggest tmp_bar see attached suggestion see attached image.
}


The standard Visual Studio 2008 intellisense offers tmp_foo no matter what order the variables are declared in. Could Visual Assist do the same?

http://www.flickr.com/photos/25467336@N03/3614313448/

Edited by - accord on Jun 11 2009 4:09:14 PM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 10 2009 :  3:08:18 PM  Show Profile  Reply with Quote
Default intellisense offers tmp_bar for me using VS2008 SP1 and disabled Visual Assist.
It doesn't offer anything at all, and get tmp_bar after ctrl+space. Do you need to press ctrl+space to get your suggestion?
Go to Top of Page

stevethresh
New Member

5 Posts

Posted - Jun 11 2009 :  04:48:08 AM  Show Profile  Reply with Quote
You do need to hit Alt+Right Arrow to auto-complete the word.

I've tried it again this morning an now the default intellisense isn't working for me either so could this post be moved to the suggestion box?
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 11 2009 :  4:19:20 PM  Show Profile  Reply with Quote
Moving the topic was the easy part of the request

Context sensitive suggestions are not an easy matter. Currently we do not analyze the context of the suggestions. There are a lot of different situations and I think it would involve a lot of work, and the benefit may not be as colossal.

Basically I think it is a good idea, and worth to think about, but don't hold your breath
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