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
 Probably wrong parse behavior on digit separator
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

horeaper
Senior Member

Singapore
49 Posts

Posted - Jan 29 2016 :  10:08:15 AM  Show Profile  Reply with Quote
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.

My life for Aiur!!!

Edited by - horeaper on Jan 29 2016 10:09:36 AM

feline
Whole Tomato Software

United Kingdom
18702 Posts

Posted - Jan 29 2016 :  2:33:16 PM  Show Profile  Reply with Quote
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.

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

horeaper
Senior Member

Singapore
49 Posts

Posted - Jan 29 2016 :  3:54:23 PM  Show Profile  Reply with Quote
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.

My life for Aiur!!!
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18702 Posts

Posted - Feb 02 2016 :  8:17:59 PM  Show Profile  Reply with Quote
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.

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

sean
Whole Tomato Software

USA
2817 Posts

Posted - Mar 16 2016 :  12:05:37 AM  Show Profile  Reply with Quote
case=86379 is fixed in build 2093
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