Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 090de37c09a9f28dfe256e75404886d20f08b97b5a8f7859928601912e66958e
Ticket: cd61f085da52b3384388c8ef780f53d8c55ead4f
tcl terminates silently with invalid expr underscore syntax and radix prefix
User & Date: juliannoble2 on 2023-08-29 16:18:17
Changes

  1. icomment:
    There's another edge case around scientific notation.
    Underscore seems to be allowed before, or after the e but not both.
    
    Perhaps the rule should be underscores between digits or after a radix specifier 0x etc  - but not next to the e (or +/-) in sci notation.
    Your insights into what makes implementation less curly may come up with a different rule - but hopefully something consistent and easily understandable is practical.
    
    % expr 1.0e_2
    100.0
    % expr 1.0_e2
    100.0
    % expr 1.0_e_2
    invalid character "."
    in expression "1.0_e_2"
    
  2. login: "juliannoble2"
  3. mimetype: "text/plain"