Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bc4ca1b12f3dcbb313012429bcf0e8b593214d9115b9d41dc0f3a1c23a425497
Ticket: 1ae976e237cf0a4d040de9435ce0554a8c8c7606
Compiled [clock clicks -mi] returns microseconds instead of an ambiguous option error
User & Date: jan.nijtmans on 2026-10-13 12:15:42
Changes

  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"