Skip to content
Tcl Source Code History Of Ticket 8ab06e
Login

History Of Ticket 8ab06e

Artifacts Associated With Ticket 8ab06e

  1. Ticket change [2221850e00] (rid 257811) by serhiy.storchaka on 2026-10-12 20:36:12:

    1. cmimetype initialized to: "text/x-fossil-wiki"
    2. comment initialized to:
      <code>self n</code> is an error ("ambiguous subcommand "n": must be call,
      caller, class, filter, method, namespace, next, object, or target"), but in
      compiled code it is accepted as <code>self namespace</code>:
      
      <verbatim>
      oo::class create C {method m {} {self n}}
      [C new] m
      </verbatim>
      
      The compiler accepts any prefix of <code>namespace</code>, including
      <code>n</code>, which is also a prefix of <code>next</code>. It has done so
      since [acbaf52e6e]. <code>na</code> should be the shortest accepted prefix.
      Since this turns code that works now into an error, the fix is for the next
      feature release.
      
    3. foundin initialized to: "8.6.18, 9.0.5, 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 [self n] returns the namespace instead of an ambiguous subcommand error
      
    12. type initialized to: "Bug"
  2. Ticket change [7484c2e45f] (rid 257967) by serhiy.storchaka on 2026-10-14 08:03:19:

    1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
    2. icomment:
      Proposed fix in branch [/timeline?r=compile-self-ambiguous|compile-self-ambiguous]:
      the compiler now requires at least <code>na</code> for <code>namespace</code>,
      so <code>self n</code> gets the "ambiguous subcommand" error from the command.
      Test oo-29.2.
      
    3. login: "serhiy.storchaka"
    4. mimetype: "text/x-fossil-wiki"
  3. Ticket change [0d9ffd7248] (rid 259098) by jan.nijtmans on 2026-10-18 21:14:13:

    1. assignee changed to: "jan.nijtmans"
    2. closer changed to: "nobody"
    3. comment changed to:
      <code>self n</code> is an error ("ambiguous subcommand "n": must be call,
      caller, class, filter, method, namespace, next, object, or target"), but in
      compiled code it is accepted as <code>self namespace</code>:
      
      <verbatim>
      oo::class create C {method m {} {self n}}
      [C new] m
      </verbatim>
      
      The compiler accepts any prefix of <code>namespace</code>, including
      <code>n</code>, which is also a prefix of <code>next</code>. It has done so
      since [acbaf52e6e]. <code>na</code> should be the shortest accepted prefix.
      Since this turns code that works now into an error, the fix is for the next
      feature release.
      
    4. icomment:
      Now merged to [7cd1d5bbe9|trunk] and core-9-0-branch.
      
      Merge to core-8-6-branch still to be done.
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Pending"