Artifacts Associated With Ticket 8ab06e
Ticket change [2221850e00] (rid 257811) by serhiy.storchaka on 2026-10-12 20:36:12:
- cmimetype initialized to: "text/x-fossil-wiki"
- 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. - foundin initialized to: "8.6.18, 9.0.5, 9.1.0"
- login: "serhiy.storchaka"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "serhiy.storchaka"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to:
Compiled [self n] returns the namespace instead of an ambiguous subcommand error
- type initialized to: "Bug"
Ticket change [7484c2e45f] (rid 257967) by serhiy.storchaka on 2026-10-14 08:03:19:
- foundin changed to: "8.6.18, 9.0.5, 9.1.0"
- 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.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
Ticket change [0d9ffd7248] (rid 259098) by jan.nijtmans on 2026-10-18 21:14:13:
- assignee changed to: "jan.nijtmans"
- closer changed to: "nobody"
- 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. - icomment:
Now merged to [7cd1d5bbe9|trunk] and core-9-0-branch. Merge to core-8-6-branch still to be done.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Pending"