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
 VA Outline and functions named 'delegate'
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bcthfq8
Starting Member

1 Posts

Posted - Nov 14 2017 :  11:52:16 AM  Show Profile  Reply with Quote
In C++, VA Outline method grouping misbehaves for a class that contains a member function named 'delegate'. Such a function also appears in the outline with the wrong color and icon.

For example, in a .h file I have:

struct foo
{
  void method1();
  int delegate();
  void method2();
}


In the .cpp file I have:

void foo::method1() { }
void foo::delegate() { }
void foo::method3() { }

In the VA Outline of the cpp file, instead of seeing:
* foo methods
** method1
** delegate
** method3

I'm getting:
* foo::method1
* foo::delegate
* foo::method3

The color and icon for the method is wrong both in the .cpp file and the .h file.

From a search in the forum I'm guessing this has something to do with the word 'delegate' having a special meaning in C# (e.g. https://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=7903)?



Edited by - bcthfq8 on Nov 14 2017 11:53:15 AM

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Nov 15 2017 :  09:19:27 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=112362

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