Overview
| Artifact ID: | 2221850e001eb59e6a60b4909e74eac044334d718a764068563e776c86bd9c24 |
|---|---|
| Ticket: | 8ab06e31e3af6141118a547d52e4636fba9ef252
Compiled [self n] returns the namespace instead of an ambiguous subcommand error |
| User & Date: | serhiy.storchaka on 2026-10-12 20:36:12 |
Changes
- cmimetype changed to: "text/x-fossil-wiki"
- 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. - foundin changed to: "8.6.18, 9.0.5, 9.1.0"
- login: "serhiy.storchaka"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "serhiy.storchaka"
- subsystem changed to: "47. Bytecode Compiler"
- title changed to:
Compiled [self n] returns the namespace instead of an ambiguous subcommand error
- type changed to: "Bug"