Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6d120a5b05e3fc942c8545a4e069e74b3c360b6bbbb2b290b42d9185e1d4f6f6
Ticket: 2bf9fbcb990c3f9639039ad8e4e4b9912e80438f
Tcl 9 docs outdated regarding tcl_platform(threaded) (TIP 599)
User & Date: EricBrunel on 2025-06-06 13:09:02
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    According to [](https://www.tcl-lang.org/software/tcltk/9.0.html ""), section "Notable incompatibilities", tcl 9 is always thread-enabled, and the build options `--enable-threads` / `--disable-threads` have disappeared.
    
    Now in the "tclvars" manual page, it says for the documentation of the array "`tcl_platform`" that if the variable "`threaded`" exists in the array, then the interpreter was compiled with threads enabled. So one would suppose that this variable always exists in tcl 9, since it is always thread-enabled. But it doesn't: with a build of tcl 9.0.1 from the sources, there is no variable "`threaded`" in the array "`tcl_platform`".
    
    This is a problem, since some interfaces with other languages (namely tkinter for Python) rely on the presence of this variable to know if tcl is thread-enabled or not. If tcl is misidentified as not thread-enabled when it actually is, it causes a lot of issues, and sometimes even crashes.
    
  5. foundin changed to: "v9.0.1"
  6. is_private changed to: "0"
  7. login: "EricBrunel"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "f6d4a0ab6bf27b9d6f6630658854c2945ae98b10"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "EricBrunel"
  14. subsystem changed to: "49. Threading"
  15. title changed to:
    Array "tcl_platform" should always contain entry "threaded" in tcl 9, but doesn't
    
  16. type changed to: "Bug"