Skip to content
Tcl Source Code Artifact [2221850e00]
Login

Artifact [2221850e00]

Artifact 2221850e001eb59e6a60b4909e74eac044334d718a764068563e776c86bd9c24:

Ticket change [2221850e00] - New ticket [8ab06e31e3af6141|8ab06e31e3] <i>Compiled [self n] returns the namespace instead of an ambiguous subcommand error</i>. by serhiy.storchaka on 2026-10-12 20:36:12.
D 2026-10-12T20:36:12.349
J cmimetype text/x-fossil-wiki
J comment <code>self\sn</code>\sis\san\serror\s("ambiguous\ssubcommand\s"n":\smust\sbe\scall,\ncaller,\sclass,\sfilter,\smethod,\snamespace,\snext,\sobject,\sor\starget"),\sbut\sin\ncompiled\scode\sit\sis\saccepted\sas\s<code>self\snamespace</code>:\n\n<verbatim>\noo::class\screate\sC\s{method\sm\s{}\s{self\sn}}\n[C\snew]\sm\n</verbatim>\n\nThe\scompiler\saccepts\sany\sprefix\sof\s<code>namespace</code>,\sincluding\n<code>n</code>,\swhich\sis\salso\sa\sprefix\sof\s<code>next</code>.\sIt\shas\sdone\sso\nsince\s[acbaf52e6e].\s<code>na</code>\sshould\sbe\sthe\sshortest\saccepted\sprefix.\nSince\sthis\sturns\scode\sthat\sworks\snow\sinto\san\serror,\sthe\sfix\sis\sfor\sthe\snext\nfeature\srelease.
J foundin 8.6.18,\s9.0.5,\s9.1.0
J login serhiy.storchaka
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter serhiy.storchaka
J subsystem 47.\sBytecode\sCompiler
J title Compiled\s[self\sn]\sreturns\sthe\snamespace\sinstead\sof\san\sambiguous\ssubcommand\serror
J type Bug
K 8ab06e31e3af6141118a547d52e4636fba9ef252
U serhiy.storchaka
Z 06d9be38f9e7f5ab029ae3c8866db27a