Overview
| Artifact ID: | 57cec42c907656a313b27cb728b6237de00bc0fc |
|---|---|
| Ticket: | 2704302fffffffffffffffffffffffffffffffff
Incorrect return value from self class |
| User & Date: | abstractsig on 2009-03-25 02:05:35 |
Changes
- icomment:
Thanks for the comments. I see now that my initial classification of this as a bug is a bit suspect. But given 'self class' works on the method invocation, so it is not clear to me what it should do as it depends on your timeline. If you want to know the name of the class corresponding to the 'current' method for a recrusive call (i.e. looking forward in time) then you need [info object class [self]], but if you want to trace back, then you need [self class]. Perhaps just a change to the documentation for 'self class' would be enough. For example if it pointed out that it is possible that the results of self class and info object class [self] can be different.
- login: "abstractsig"
- mimetype: "text/plain"
- username: "abstractsig"