Overview
| Artifact ID: | 38119435e82ee742ba64c7767925f863f05120e6184b3a63ed9e63a0fd13fed8 |
|---|---|
| Ticket: | 36e5517a6850c19300547700954912678fd46703
Incompatible change in behavior of -private option to info class methods command |
| User & Date: | dkf on 2024-05-16 07:52:33 |
Changes
- icomment:
It should list exactly the methods listed in 8.6. However, the set of possible methods is expanded: ``` oo::class create C { method foo {} {} method Bar {} {} private method gorp {} {} } puts [info class methods C -private] ``` This should list `foo` and `Bar` (in some order) but *not* `gorp`; that should only be present if `-scope private` is passed (and then that only fetches `gorp`; `-scope` doesn't work the same way). The problem likely lies between: * `InfoClassMethodsCmd` (and probably also `InfoObjectMethodsCmd`) in tclOOInfo.c, * `TclOOGetSortedMethodList` and `TclOOGetSortedClassMethodList` in tclOOCall.c, and * the testing of `info class methods` (and probably `info object methods`) in oo.test (around `oo-17.*` would have been the right place) I'm particularly irritated that there isn't a test of this case. - login: "dkf"
- mimetype: "text/x-markdown"