Overview
| Artifact ID: | de8f6d4a26d64c600026da71ef1d7b61f4ad7b0d |
|---|---|
| Ticket: | 219151ffffffffffffffffffffffffffffffffff
Annoying ANSI signatures of many Tcl library functions. |
| User & Date: | nobody on 2000-10-26 05:02:21 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 1162 RFE Version: 8.0.4 SubmitDate: '1999-02-02' LastModified: '2000-05-17' Severity: MED Status: Assigned Submitter: pat ChangedBy: hobbs RelatedBugIDs: 2580 OS: Solaris OSVersion: 2.6 Machine: Other FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Krzysztof Kozminski Extensions: BLT, DP, Expect, Tree, Itcl, Itk and about a dozen others... DesiredBehavior: Many Tcl API procedures take a "char *" argument where they really could take a "const char *" if only some minor effort was dedicated to fixing the procedures that really have no business accessing their arguments as writable strings. This causes annoying warnings whenever compiling code that follows the discipline of calling constant a constant, e.g., when one uses RogueWave tools for string processing and then tries to pass the result to Tcl. It would be really nice if functions like: Tcl_CommandComplete, Tcl_Eval, Tcl_AppendElement, Tcl_StringMatch, Tcl_SetResult, Tcl_FindHashEntry, Tcl_CreateHashEntry, and many others were capable to take const char *. I tend to consider the current signatures more of a bug, than a missing feature... KK Should really use CONST, isn't a big deal, although it changes many core sigs. (updated stubs and all). -- 04/03/2000 hobbs
- foundin changed to: "obsolete: 8.0.4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "75. Tutorial"
- title changed to:
Annoying ANSI signatures of many Tcl library functions.
- type changed to: "Bug"