Skip to content
Tcl Source Code History Of Ticket 2634f337a79d00e4
Login

History Of Ticket 2634f337a79d00e4

Artifacts Associated With Ticket 2634f337a79d00e4

  1. Ticket change [901d443968] (rid 220729) by anonymous on 2023-12-05 00:36:40:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      The manual for tcl9.0 has not changed for namespace name resolution and so I will assume that the example should still work. It does work in 8.6, the below is in 9.0b1
      
      % proc printTrace {args} {puts {*}$args} ;# my def to make this work
      
      % set traceLevel 0
      0
      % namespace eval Debug {
           printTrace $traceLevel
       }
      can't read "traceLevel": no such variable
      
      It does, however, find the procedure printTrace.
      
      It is supposed to look first in the Debug namespace, but not finding it there, it should eventually find it in the global namespace.
      
      One place this occurs is in BWidgets, the file  dropsite.tcl does a test,
      
      namespace eval DropSite {
      ...snip...
          if { $tcl_platform(platform) == "unix" } {
      
      which being inside a namespace eval did not find tcl_platform. I had to fix it by changing to $::tcl_platform
      
    5. foundin initialized to: "tcl9.0b1"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Important"
    11. status initialized to: "Open"
    12. submitter initialized to: "anonymous"
    13. subsystem initialized to: "21. [namespace]"
    14. title initialized to: "namespace eval not finding global variables"
    15. type initialized to: "Bug"
  2. Ticket change [2e58f9f246] (rid 220730) by anonymous on 2023-12-05 08:32:09:

    1. icomment:
      Ahhhh, I found the release notes, where it documents this NEW behavior.
      
      However, the manual, (a recent core mailing list)
      
       https://www.tcl3d.org/bawt/download/Preview/Tcl9/TclTkManual/index.html
      
      There the manual has not been updated and still describes the 8.6 behavior, not the 9.0.
      
    2. login: "anonymous"
    3. mimetype: "text/plain"
  3. Ticket change [02896e5d9e] (rid 220733) by oehhar on 2023-12-05 09:45:29:

    1. closedate changed to: "2460283.90658708"
    2. closer changed to: "oehhar"
    3. icomment:
      Great, that you have found it.
      Here is the draft of the official migration guide:
      [https://core.tcl-lang.org/tcl/wiki?name=Migrating+scripts+to+Tcl+9]
      
      Help welcome !
      Harald
      
    4. login: "oehhar"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Works For Me"
    7. status changed to: "Closed"
    8. username: "oehhar"