Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7fcf1643b3ca18af055f1239d015cb2dbdbd9be1
Ticket: 219151ffffffffffffffffffffffffffffffffff
Annoying ANSI signatures of many Tcl library functions.
User & Date: dkf on 2016-08-22 12:33:11
Changes

  1. assignee changed to: "aku"
  2. closedate changed to: "2457623.02305529"
  3. closer changed to: "dkf"
  4. 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
    
  5. login: "dkf"
  6. mimetype: "text/plain"
  7. severity changed to: "Minor"
  8. subsystem changed to: "69. Other"