Skip to content
Tcl Source Code History Of Ticket 1ae976
Login

History Of Ticket 1ae976

Artifacts Associated With Ticket 1ae976

  1. Ticket change [77cb48425f] (rid 257810) by serhiy.storchaka on 2026-10-12 20:32:40:

    1. cmimetype initialized to: "text/x-fossil-wiki"
    2. comment initialized to:
      <code>clock clicks -mi</code> is an error ("ambiguous option "-mi": must be
      -milliseconds or -microseconds"), but in compiled code 9.1 accepts it and
      returns microseconds:
      
      <verbatim>
      proc p {} {clock clicks -mi}
      p
      </verbatim>
      
      9.0 compiles the option only if it is at least 4 characters long, so it gives
      the error in both cases. [507b920e63] (TIP 720) replaced that check with
      <code>IS_TOKEN_PREFIX(tokenPtr, 3, ...)</code>.
      
      Proposed fix in branch [/timeline?r=compile-clock-clicks-ambiguous|compile-clock-clicks-ambiguous]:
      require 4 characters again. Tests clock-33.7.1 and clock-33.7.2.
      
    3. foundin initialized to: "9.1.0"
    4. login: "serhiy.storchaka"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. severity initialized to: "Minor"
    8. status initialized to: "Open"
    9. submitter initialized to: "serhiy.storchaka"
    10. subsystem initialized to: "47. Bytecode Compiler"
    11. title initialized to:
      Compiled [clock clicks -mi] returns microseconds instead of an ambiguous option error
      
    12. type initialized to: "Bug"
  2. Ticket change [bc4ca1b12f] (rid 257895) by jan.nijtmans on 2026-10-13 12:15:42:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2461327.0109115392"
    3. closer changed to: "jan.nijtmans"
    4. comment changed to:
      <code>clock clicks -mi</code> is an error ("ambiguous option "-mi": must be
      -milliseconds or -microseconds"), but in compiled code 9.1 accepts it and
      returns microseconds:
      
      <verbatim>
      proc p {} {clock clicks -mi}
      p
      </verbatim>
      
      9.0 compiles the option only if it is at least 4 characters long, so it gives
      the error in both cases. [507b920e63] (TIP 720) replaced that check with
      <code>IS_TOKEN_PREFIX(tokenPtr, 3, ...)</code>.
      
      Proposed fix in branch [/timeline?r=compile-clock-clicks-ambiguous|compile-clock-clicks-ambiguous]:
      require 4 characters again. Tests clock-33.7.1 and clock-33.7.2.
      
    5. icomment:
      Fixed in [88c6ad4c756c8244|trunk]
      
      Many thanks!
      
    6. login: "jan.nijtmans"
    7. mimetype: "text/x-fossil-wiki"
    8. resolution changed to: "Fixed"
    9. status changed to: "Closed"