Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1a8b5f069973a02f3bc6df288e20a45858cddb2b922909008328640e542a2a7e
Ticket: 31fedb885e801f4cc41c7b1f4438e27ce4a3667f
Tcl_ExprLong documentation omission
User & Date: emiliano on 2025-03-25 00:09:34
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    The man page documenting the Tcl functions Tcl_ExprLong(), Tcl_ExprDouble(), Tcl_ExprBoolean() and Tcl_ExprString() omits to mention that these four functions returns TCL_OK and write a zero in the passed in variable if an empty string is provided (*expr == '\0').
    
    This is relevant since evaluating an empty string in Tcl results in a different result.
    
    $ tclsh9.1 
    % expr {}
    empty expression
    in expression ""
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "emiliano"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Important"
  11. status changed to: "Open"
  12. submitter changed to: "emiliano"
  13. subsystem changed to: "69. Other"
  14. title changed to: "Tcl_ExprLong documentation omission"
  15. type changed to: "Bug"