<i>Incompatible change in behavior of -private option to info class methods command</i> status still Open with 3 other changes
by
.
D 2024-05-16T07:52:33.056
J icomment It\sshould\slist\sexactly\sthe\smethods\slisted\sin\s8.6.\sHowever,\sthe\sset\sof\spossible\smethods\sis\sexpanded:\r\n```\r\noo::class\screate\sC\s{\r\n\s\s\s\smethod\sfoo\s{}\s{}\r\n\s\s\s\smethod\sBar\s{}\s{}\r\n\s\s\s\sprivate\smethod\sgorp\s{}\s{}\r\n}\r\nputs\s[info\sclass\smethods\sC\s-private]\r\n```\r\nThis\sshould\slist\s`foo`\sand\s`Bar`\s(in\ssome\sorder)\sbut\s*not*\s`gorp`;\sthat\sshould\sonly\sbe\spresent\sif\s`-scope\sprivate`\sis\spassed\s(and\sthen\sthat\sonly\sfetches\s`gorp`;\s`-scope`\sdoesn't\swork\sthe\ssame\sway).\r\n\r\nThe\sproblem\slikely\slies\sbetween:\r\n*\s`InfoClassMethodsCmd`\s(and\sprobably\salso\s`InfoObjectMethodsCmd`)\sin\stclOOInfo.c,\r\n*\s`TclOOGetSortedMethodList`\sand\s`TclOOGetSortedClassMethodList`\sin\stclOOCall.c,\sand\r\n*\sthe\stesting\sof\s`info\sclass\smethods`\s(and\sprobably\s`info\sobject\smethods`)\sin\soo.test\s(around\s`oo-17.*`\swould\shave\sbeen\sthe\sright\splace)\r\n\r\nI'm\sparticularly\sirritated\sthat\sthere\sisn't\sa\stest\sof\sthis\scase.
J login dkf
J mimetype text/x-markdown
K 36e5517a6850c19300547700954912678fd46703
U dkf
Z e0a07b5e4d0a2c22175c44f36dd80ce2