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
 Technical Support
 1555: Small Parse Problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mmb
Senior Member

42 Posts

Posted - May 02 2007 :  5:09:57 PM  Show Profile  Reply with Quote
I noticed today a small parse problem which I believe worked in older releases:

int (bla)(int x, int y) {}

While colored right, it is shown as

"bla)" in ListMethodsInCurrentFile and as
"int (bla)(int x, int y)" in the context preview

However, the tooltip correctly shows the number of parameters.

(This construction protects bla from being replaced by the preprocessor, yes, again bad macro magic ;-)

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - May 03 2007 :  11:52:19 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=6366

I went back as far as VA 1301 and this failed in some form or other in all versions I checked. If you can remember which version it worked correctly in I can try testing it here.

zen is the art of being at one with the two'ness
Go to Top of Page

mmb
Senior Member

42 Posts

Posted - May 03 2007 :  1:04:31 PM  Show Profile  Reply with Quote
Not sure about the old version. I found this because Alt-G did not jump to the paranthesed declaration and I believe it worked in older 14xx/15xx ones. The Alt-M was possibly broken all over the time, I use it rarely.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - May 03 2007 :  2:52:06 PM  Show Profile  Reply with Quote
How easily can you reproduce this problem? using VS2005 and VA 1555 I have just tried the following code:

int (functionNameInBrackets)(int x, int y) { return 0; }

static void callFunctionInBrackets()
{
	functionNameInBrackets(1, 2);
}


and alt-g works fine for me.

zen is the art of being at one with the two'ness
Go to Top of Page

mmb
Senior Member

42 Posts

Posted - May 04 2007 :  05:48:32 AM  Show Profile  Reply with Quote
feline: The problem seems be be more general and do not depends on parenthesis, see:



While the tooltip shows me the macro only, Alt-G jumps straigth to the function.
Maybe I just don't understand the intention of Alt-G.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - May 04 2007 :  09:44:48 AM  Show Profile  Reply with Quote
I am seeing the same effect here. It seems that VA is rather confused by this, and I can see why:

case=6388

Do I want to ask why you have functions and macro's with the same name?

zen is the art of being at one with the two'ness
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