|
2017-03-29
| ||
| 19:16 | [900cb0284bc] Ensure that masking pseudo-methods used for export management are not introspectable d... check-in: 0ea6a41ae3 user: dkf tags: core-8-6-branch | |
| 19:10 | • Closed ticket [900cb0284b]: TclOO unexport introspection bug plus 7 other ch... artifact: 3b67d345ab user: dkf | |
| 19:07 | [900cb0284bc] Ensure that masking pseudo-methods used for export management are not introspectable d... check-in: 61147cf575 user: dkf tags: trunk | |
|
2017-03-28
| ||
| 12:11 | • Ticket [900cb0284b] TclOO unexport introspection bug status still Open with ... artifact: e5a5966ff4 user: jan.nijtmans | |
|
2017-03-27
| ||
| 13:07 | • Ticket [900cb0284b]: 3 changes artifact: 4cd051ad1b user: aspect | |
| 13:02 | Correct this use of isWanted to ensure NO_IMPLEMENTATION methods are not listed (bug [900cb0284bc]) check-in: 2099250d6f user: aspect tags: bug-900cb0284bc | |
|
2017-03-25
| ||
| 20:37 | • New ticket [900cb0284b] TclOO unexport introspection bug. artifact: a9b2bd9354 user: Napier | |
TclOO unexport introspection bug
Closed / Fixed900cb0284bcf1bf27038a7ae02c9f1440b150c86Created 10 years agoUpdated 10 years ago
Descriptionplain2017-03-25 20:37:15
So just ran into what I believe is a bug with TclOO. I understand why it occurs and why the lifecycle specifics are probably getting in the way, but it definitely appears to be a bug. In this case one that is rather severe since there is no way to introspect mixin relationships with unexport involved. In my case the mixin is unexporting some methods that may or may not exist. During the definition we have no real way of knowing whether or not the methods will at some point exist. The problem comes in later when we want to know if the method exists (without calling the method first and defining it on the mixin). While its possible to create a method that will check [self next] that does not appear to be an appropriate solution for multiple reasons. Additionally, in this case the error it reports when the problem occurs is: "unknown method "method_two": must be <cloned>, check, check_class, destroy, eval, method_one, method_two, unknown, variable or varname" See the paste below for an example of the bug that will allow you to re-create it. http://paste.tclers.tk/4186
aspectplain2017-03-27 13:07:09
Fixed in branch [bug-900cb0284bc]. I think this is correct - the isWanted dance was missing a clause present in its other stanzas. For completeness, there should be a test where the unexported method *is* supposed to be listed, but maybe this is enough.
jan.nijtmansplain2017-03-28 12:11:58
Assigning to the TclOO guy
dkfhtml2017-03-29 19:10:05
That looked reasonable to me. My only quibble was that it was done against the wrong branch (this should have been done against 8.6 first, for ease of merging).
Log in (anonymous is fine) to add a comment.