Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fd7c894e6c5ce0e18f7e9a701a1beb8897ded2f8af4c8e9bfe3d488bf56e2112
Ticket: cd61f085da52b3384388c8ef780f53d8c55ead4f
tcl terminates silently with invalid expr underscore syntax and radix prefix
User & Date: griffin on 2023-09-01 03:41:20
Changes

  1. icomment:
    All the reported failures have been fixed, as well as others I've discovered. This fix is on branch [bug-cd61f085da](timeline?r=bug-cd61f085da)
    
    The implementation reflects the following description of numeric white-space:
    
    The definition for numeric white-space is simplified to: 
       1 or more '`_`' characters may be placed between digits only.
    
    Numeric white-space cannot be:
    
    - at the beginning of a number
    
    - before or after a '`+`' or '`-`'
    
    - before or after a decimal point '`.`'
    
    - before or after an exponent '`e`' or '`E`' symbol
    
    - before, after, or in between a base specifier `0b`, `0o`, `0d`, or `0x`
    
    Legal examples:  
    
    ```
        0x1_2__34___56
        2_0.3_4e+1_5
    ```
    
    Illegal examples: 
    
    ```
        _0_x_123456_
        _20_._34_e_+_15_
    ```
    
  2. login: "griffin"
  3. mimetype: "text/x-markdown"