Overview
| Artifact ID: | e0614362e1e978d672216752c1049d03c00d9fae |
|---|---|
| Ticket: | 219151ffffffffffffffffffffffffffffffffff
Annoying ANSI signatures of many Tcl library functions. |
| User & Date: | dgp on 2002-02-11 05:14:50 |
Changes
- assignee changed to: "kennykb"
- icomment:
Logged In: YES user_id=80530 Basically, yes. TIP 27 changed all the interfaces that can reasonably be changed without major (Tcl 9?) rewrites to Tcl's internals. Any script passed to Tcl_Eval and friends must be a writable string, because parsing of ']' writes on the string. Likewise, any variable name must be passed as a writable string because the parsing of ')' in array element variables writes on the string. For these reasons, Tcl_CommandComplete, Tcl_Eval, etc. have not been changed. Tcl_SetResult has not been changed because its freeProc argument controls the real treatment of the string, and the ability to pass the string to the (freeProc) as a writable string needs to be preserved. The following cast is always safe: Tcl_SetResult(interp, (char *) str, TCL_VOLATILE); and any new code ought to be using Tcl_SetObjResult anyway. The other specific requests in this report have all been converted as part of the TIP 27 effort. Either close this report entirely, or convert it to a Feature Request for the remaining changes to be considered in the Tcl 9 time frame. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"