Overview
| Artifact ID: | 1a77bb873d88fd38712edd93e371909099a8f968 |
|---|---|
| Ticket: | 1893052fffffffffffffffffffffffffffffffff
Object type info can be lost after comparison (e.g. INST_EQ) |
| User & Date: | nobody on 2008-02-14 08:08:04 |
Changes
- icomment:
Logged In: NO A couple of comments: 1. I have a feeling that semantically read-only operations, such as comparison, have no right whatsoever to erase type information in an object of an unknown type, because there is no guarantee that the type conversion is reversible. To the best of my understanding, there is nothing in the Tcl library reference that would suggest that Tcl_SetFromAnyProc MUST always succeed. 2. Any assumption about performance gain due to conversion to integer, although generally correct for plain strings, may prove very wrong when applied universally to custom types, even if the conversion is reversible. 3. String representation of an object of a custom type may, in fact, be meaningful, as opposed to "foo%p".
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"