Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2021-01-15
12:05 • Closed ticket [ff658e10fc]: tip 551 in 8.7a4 0b1111_1111 not working plus 7 ... artifact: a128271c4b user: jan.nijtmans
10:52
Fix [ff658e10fc]: tip 551 in 8.7a4 0b1111_1111 not working. Also fix some indenting in code check-in: 7ff7203075 user: jan.nijtmans tags: core-8-branch
2020-12-30
17:09 • New ticket [ff658e10fc] tip 551 in 8.7a4 0b1111_1111 not working. artifact: 89500bed71 user: anonymous

tip 551 in 8.7a4 0b1111_1111 not working

Closed / Fixedff658e10fc6e18a81cd63603be46262b867f4626Created 6 years agoUpdated 6 years ago
Descriptionplain2020-12-30 17:09:33
TIP 551 allows numbers to have underscores for visibility. 

I tried a single file unofficial executable for 8.7a4 and 
got these results, decimal and hex working, but the binary 
isn't working as expected:

% expr 1000
1000
% expr 1_000
1000
% expr 0x1ff
511
% expr 0x1_ff
511
% expr 0b11111111
255
% expr 0b1111_1111
invalid bareword "0b1111_1111"
in expression "0b1111_1111";
should be "$0b1111_1111" or "{0b1111_1111}" or "0b1111_1111(...)" or ... (invalid binary number?)
Referenced by1
  • 7ff7203075Fix [ff658e10fc]: tip 551 in 8.7a4 0b1111_1111 not working. Also fix some indenting in code check-in2021-01-15 10:52:26
jan.nijtmanswiki2021-01-15 12:05:55

Fixed here: [7ff7203075a73c63]. Thanks for the report and the testcase!

Log in (anonymous is fine) to add a comment.