Overview
| Artifact ID: | 60e22dfa94b79444c07abc81e9a75b254efc8a0f |
|---|---|
| Ticket: | 686782ffffffffffffffffffffffffffffffffff
Changes to Tcl_SetObjLength() break "expect -re" |
| User & Date: | rmax on 2003-02-18 17:26:26 |
Changes
- icomment:
Logged In: YES user_id=124643 There were several places in expect where it relied on the undocumented side effect of the old Tcl_SetObjLength() to remove the internal rep. For the time being I have added a expInvalidateInternalRep() function to our expect package that just calls the freeIntRepProc of the object type and then sets the typePtr to NULL, as suggested on yesterday's chat by Jeff and Kevin, and by dkf below, while I was typing these lines ;). But I imagine, that there are other extensions and applications which also rely on the old behaviour of Tcl_SetObjLength(). So it might be better to not change that before the next major release. Mabe Tcl_SetObjLength() could be split in two parts, a private one that keeps the internal rep and can be used by the core, and a public wrapper which maintains the current behaviour.
- login: "rmax"
- mimetype: "text/plain"
- title changed to: "Changes to Tcl_SetObjLength() break "expect -re""
- username: "rmax"