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
 Support for C++17 structured bindings
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Zeblote
Tomato Guru

183 Posts

Posted - Nov 17 2019 :  6:30:35 PM  Show Profile  Reply with Quote
Just heard of this thing for the first time and went to try it out, sadly the syntax highlighting and type deduction in va is very questionable :(



Edit: oops, I meant to post this in feature requests

Edited by - Zeblote on Nov 17 2019 6:32:13 PM

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Nov 18 2019 :  3:09:32 PM  Show Profile  Reply with Quote
Our parser does not currently support / understand structured bindings. This is something we are aware of, but I don't currently have an estimate for when we will try adding support for this:

case=113210

It is useful to know that you have run into this limitation, so I have made a note on the case about this.

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

jase439
Ketchup Master

54 Posts

Posted - Nov 18 2019 :  4:09:15 PM  Show Profile  Reply with Quote
I just heard about these a minute ago when I read your post lol. This language is morphing at a rate faster than I can wrap my head around. Can't imagine writing parsers to handle all these language zigs and zags.

For the inquiring mind:

https://en.cppreference.com/w/cpp/language/structured_binding
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Nov 19 2019 :  07:33:06 AM  Show Profile  Reply with Quote
In a way it can seem easier to be a compiler writer, since once you encounter a fatal error in the code, you can go "oops, giving up now". VA is designed to parse your code as you are writing it, so most of the time we expect it to be invalid, and aim to parse it as well as possible regardless. It makes life "interesting"

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

barto
Junior Member

Germany
19 Posts

Posted - Dec 19 2019 :  11:18:44 AM  Show Profile  Reply with Quote
+1 on this. It's really stressing me when VAX does auto-correct during the typing of the structured binding or trying to use the variables. I always thought it was a shortcoming on MS's IntelliSense parser...
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Dec 19 2019 :  3:57:35 PM  Show Profile  Reply with Quote
Thank you for letting us know this is also effecting you, I have made a note on the case about this. We are hoping to address this fairly soon, but until we try, it's not always obvious how easy it will be to properly support this syntax.

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

LtRandolph
Starting Member

USA
1 Posts

Posted - Apr 28 2020 :  2:12:59 PM  Show Profile  Reply with Quote
Good luck fixing this! I use this language feature a lot, and have to wrestle with making the auto-correct not introduce compile errors. I look forward to when it's fixed. :-)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Apr 29 2020 :  05:44:28 AM  Show Profile  Reply with Quote
Thank you for letting us know you are also running into this problem. Having a sense of how many people are effected by an issue is useful and helps us to prioritise work.

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