Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Probably wrong parse behavior on digit separator

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
horeaper Posted - Jan 29 2016 : 10:08:15 AM
Giving code:

const int Count = 100'000;

int main()
{
/* whatever */
}

VA basically stops working when editing anything after first line, no snippets, no suggestions.
Remove the digit separator in the first line, everything back to normal.

If the first line was written as:

const int Count = 10'000'000;

Everything is fine.

This bug was found in version 10.9.2086
Probably because VA treat the separator as the beginning/closing of a character literal.
4   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Mar 16 2016 : 12:05:37 AM
case=86379 is fixed in build 2093
feline Posted - Feb 02 2016 : 8:17:59 PM
This is a "bug" in VA, we have not yet added support for this new syntax, but are looking to do so. This is covered by:

case=86379

and this thread should be updated when this has been fixed, and supported has been added.
horeaper Posted - Jan 29 2016 : 3:54:23 PM
Currently only VS2015 supports digit separator, so this code won't compile under VS2013 and below. This is a C++14 feature.
I have tested it under VA 10.9.2076 and 10.9.2086, both showing the same symptoms.
feline Posted - Jan 29 2016 : 2:33:16 PM
Which IDE and version of VA are you using?

This code does not compile for me in VS2013, but it does compile in VS2015. I did not know this was possible, learn something new every day.

case=86379

As a temporary work around, have you considered changing the const to read:

const int Count = 100 * 1000;

which is still fairly clear, and means the same. This is how I have always done large numbers, so I can be clear on how large the number is.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000