Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 56364f96d1b10332aab9cc4a8baf850ee9fce15f649ed9412ec33a4773cde123
Ticket: b204c13b2b2335a6baf8fa1a3c6a627432380012
Incompatibility between 8.6 and 8.7 with underscores in numerics
User & Date: jan.nijtmans on 2023-08-25 16:56:06
Changes

  1. assignee changed to: "jan.nijtmans"
  2. icomment:
    Understood (but not agreed)
    
    When doing comparisons while one argument is known to be a string, the eq/ne are prefered over ==/!=. This example shows why this should be done. Should TIP #472 have been rejected as well? Example:
    In 8.6 
    
    ```
    % expr {10 == "0d10"}
    0
    ```
    
    In 8.7
    
    ```
    % expr {10 == "0d10"}
    1
    ```
    
    In my view, TIP's #472 and #551 are OK. The documentation should - maybe - be improved, mentioning why eq/ne operators should be used for string comparison.
    
    Since those TIP's are already accepted, the only way to undo those are a follow-up TIP. I don't think such a TIP would be accepted (I wouldn't). Sorry.
    
  3. login: "jan.nijtmans"
  4. mimetype: "text/x-fossil-wiki"