<i>Incompatible change in behavior of -private option to info class methods command</i>.
by
.
D 2024-05-03T06:50:25.166
J assignee nobody
J closer nobody
J cmimetype text/x-markdown
J comment In\s8.6\r\n\r\n```\r\n%\soo::class\screate\sC\s{method\sPrivate\s{}\s{};\smethod\spublic\s{}\s{}}\r\n::C\r\n%\sinfo\sclass\smethods\s::C\r\npublic\r\n%\sinfo\sclass\smethods\s::C\s-private\r\npublic\sPrivate\r\n```\r\n\r\nThe\sabove\sworks\sas\sdocumented\sas\sthe\s`-private`\soption\swill\sreturn\sprivate\smethods\s**in\saddition\sto**\spublic\smethods\sas\sstated\sin\sthe\smanpage\s*If\sthe\s-private\sflag\sis\sgiven,\sthe\slist\sof\smethods\swill\salso\sinclude\sthe\sprivate...*\s(note\sthe\s"also").\r\n\r\nIn\sTcl\s9,\sthis\sis\snot\sthe\scase\r\n\r\n```\r\n%\soo::class\screate\sC\s{method\sPrivate\s{}\s{};\smethod\spublic\s{}\s{}}\r\n::C\r\n%\sinfo\sclass\smethods\s::C\r\npublic\r\n%\sinfo\sclass\smethods\s::C\s-private\r\nPrivate\r\n```\r\n\r\nNote\sthe\s`-private`\soption\snow\sreturns\sonly\sprivate\smethods.\sHowever,\sthe\sdocumentation\sstill\sseems\sto\smatch\s8.6\sbehavior:\s*If\sthe\s-private\sflag\sis\sgiven,\sand\sthe\s-scope\sflag\sis\snot\sgiven,\sthe\slist\sof\smethods\swill\salso\sinclude\sthe\snon-exported\smethods\sof\sthe\sclass*\r\n\r\nI'm\snot\ssure\sif\sthe\sTcl\s9\simplementation\sneeds\sto\sbe\sfixed\sor\sthe\sdocumentation.\sIf\sthe\slatter,\san\sTcl\s8\sincompatibility\snote\swould\sbe\sdesirable.
J foundin 9.0b2
J is_private 0
J login apnadkarni
J priority 5\sMedium
J private_contact 9546e9877f1a8899e25a89082561ee694e7fb402
J resolution None
J severity Minor
J status Open
J submitter apnadkarni
J subsystem 35.\sTclOO\sPackage
J title Incompatible\schange\sin\sbehavior\sof\s-private\soption\sto\sinfo\sclass\smethods\scommand
J type Bug
K 36e5517a6850c19300547700954912678fd46703
U apnadkarni
Z c588f3c9be914c8fe578facf8853095e