: <i>Compiled [self n] returns the namespace instead of an ambiguous subcommand error</i> plus 7 other changes
by
.
D 2026-10-18T21:14:13.789
J assignee jan.nijtmans
J closer nobody
J comment <code>self\sn</code>\sis\san\serror\s("ambiguous\ssubcommand\s"n":\smust\sbe\scall,\r\ncaller,\sclass,\sfilter,\smethod,\snamespace,\snext,\sobject,\sor\starget"),\sbut\sin\r\ncompiled\scode\sit\sis\saccepted\sas\s<code>self\snamespace</code>:\r\n\r\n<verbatim>\r\noo::class\screate\sC\s{method\sm\s{}\s{self\sn}}\r\n[C\snew]\sm\r\n</verbatim>\r\n\r\nThe\scompiler\saccepts\sany\sprefix\sof\s<code>namespace</code>,\sincluding\r\n<code>n</code>,\swhich\sis\salso\sa\sprefix\sof\s<code>next</code>.\sIt\shas\sdone\sso\r\nsince\s[acbaf52e6e].\s<code>na</code>\sshould\sbe\sthe\sshortest\saccepted\sprefix.\r\nSince\sthis\sturns\scode\sthat\sworks\snow\sinto\san\serror,\sthe\sfix\sis\sfor\sthe\snext\r\nfeature\srelease.
J icomment Now\smerged\sto\s[7cd1d5bbe9|trunk]\sand\score-9-0-branch.\r\n\r\nMerge\sto\score-8-6-branch\sstill\sto\sbe\sdone.
J login jan.nijtmans
J mimetype text/x-fossil-wiki
J resolution Fixed
J status Pending
K 8ab06e31e3af6141118a547d52e4636fba9ef252
U jan.nijtmans
Z d72fa2f5eb3359f544b29cba8adac53f