Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6f7c202ff05912d0080a275305da277efea38184ea44b072c3997744cbece24e
Ticket: 10545687da9962482e3a9014b4cf9cbcca07e647
Improve Tcl_GetNumberFromObj with abstract list interfaces
User & Date: dgp on 2025-09-04 19:10:50
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Tcl_GetNumberFromObj() has already been written to make use of
    the extended Tcl_ObjType abstract list routines to efficiently
    reject non-singleton lists as non-numbers.
    
    I have a patch to re-order this processing, which is possible because
    all of Tcl's numeric types have implemented the abstract list routines
    so rejecting early is efficient enough to come first without worry
    about slowing down the accept results noticeably.
    
    Some comments are added to help later readers understand the logic.
    
  5. foundin changed to: "9.0"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "8e2300e85be5dd1445b9666eb9429055951e33be"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "dgp"
  14. subsystem changed to: "10. Objects"
  15. title changed to:
    Improve Tcl_GetNumberFromObj with abstract list interfaces
    
  16. type changed to: "Bug"