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
 Lambda assignment not highlighted correctly
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

fun4jimmy
New Member

United Kingdom
3 Posts

Posted - Jul 03 2014 :  08:09:54 AM  Show Profile  Reply with Quote
Specifying a type when assigning a lambda (or lambda result when called in place) causes visual assist to incorrectly highlight the assignment variable.

In the following example lambda will be white not the VA Variable colour.
std::function<int()> lambda = []()
{
  return 10;
};

In the following example result will be white not the VA Variable colour.
int result = []()
{
  return 10;
}();

Note that swapping int or std::function<int()> for auto results in the correct colour.

Edited by - fun4jimmy on Jul 03 2014 08:10:08 AM

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jul 03 2014 :  4:28:44 PM  Show Profile  Reply with Quote
I am seeing the same effect here with your first example, thank you for the clear description.

case=83470

I am guessing the auto version is working due to handling for auto, which would explain this pattern.

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

TheQwertiest
New Member

2 Posts

Posted - Feb 15 2019 :  07:31:10 AM  Show Profile  Reply with Quote
Sorry for the necropost, but this issue still exists on the latest version of VAX. Is it a limitation imposed by VisualStudio addon API or was it just lost deep in the backlog? =)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Feb 15 2019 :  11:20:31 AM  Show Profile  Reply with Quote
No problem with asking. Unfortunately this has not yet been fixed in our parser. This is still an open bug report, but its one of many open bug reports, and is not currently a priority. But it is good to know which bug's people care about, and we do consider this when working out where to focus our efforts and bug fixes.

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