Skip to content
Tcl Source Code History Of Ticket 9eac2d8a8d
Login

History Of Ticket 9eac2d8a8d

Artifacts Associated With Ticket 9eac2d8a8d

  1. Ticket change [7641c74042] (rid 171389) by anonymous on 2019-05-07 22:07:05:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      Following up on the conversation at IRC:
      
      «dkf» We used to do a nonsense parse where if the first argument started with a digit (IIRC), Tcl would assume that it was a level _even if that meant there were no other arguments_ (which was an error case)
      
      «dkf» it shouldn’t ever consider an argument to be a level if there’s only one argument
      
      In current 8.7, this holds but not for a single arg starting with a hash:
      
      % namespace eval ::ns1 { uplevel {#0 b}}}
      bad level "#0 b"
      
      should read: invalid command "#0"
      
      «dkf» ’tis a bug
      «dkf» in 8.7
      
    5. foundin initialized to: "core-8-branch"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "d4d1d8192a46acf2c7d58cddc1040ecdbc9c9d77"
    10. resolution initialized to: "None"
    11. severity initialized to: "Severe"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous"
    14. subsystem initialized to: "22. [proc] and [uplevel]"
    15. title initialized to:
      uplevel: level sniffing for single arg, default-level case (absolute level specifier only)
      
    16. type initialized to: "Bug"
  2. Ticket change [50200fe803] (rid 171404) by dgp on 2019-05-08 18:00:00:

    1. icomment:
      
      For some history, see
      
      https://core.tcl-lang.org/tcl/tktview/2673163
      
      https://core.tcl-lang.org/tcl/info/1c6d19544d18c36a
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  3. Ticket change [cb7dbe76da] (rid 171411) by dgp on 2019-05-08 18:50:07:

    1. icomment:
      
      The documentation for [uplevel]:
      
          https://www.tcl-lang.org/man/tcl8.7/TclCmd/uplevel.htm
      
      clearly states " Level cannot be defaulted if the first command argument starts with a digit or #. "
      
      So this is not a bug, but it is a report of absolutely boneheaded behavior.
      
      We should TIP the fix, using the fact that we already did this for
      [upvar] as justification.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  4. Ticket change [46fed0a6ac] (rid 186867) by pooryorick on 2020-09-19 17:28:27:

    1. icomment:
      See ticket [b9ecf3ce98] for a backwards-compatible solution that addresses most practical concerns by interpreting the first argument as a script if it is the only argument and is a list containing more than one item.
      
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"