Skip to content
Tcl Source Code History Of Ticket 500930ffffffffff
Login

History Of Ticket 500930ffffffffff

Artifacts Associated With Ticket 500930ffffffffff

  1. Ticket change [a554c0d0db] (rid 110355) by dgp on 2002-01-08 17:51:08:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      In doc/StringObj.3, the docs for Tcl_GetString
      and Tcl_GetStringFromObj say:
      
       Tcl_GetStringFromObj and Tcl_GetString return an
       object's string representation. ... The storage
       referenced by the returned  byte pointer is owned
       by the object manager and should not be modified
       by the caller.  ...
      
      If it is true that the caller should not modify the
      storage referenced by the returned pointer, then
      these routines should return a (CONST char *) so
      that the return type enforces the documented
      requirement.
      
      However, there are many places within Tcl and
      popular extensions such as Tk where the returned
      value is stored in a (char *) variable, and some
      places where the referenced storage is modified
      directly, when it is known that it is safe to do
      so within the rules of Tcl's copy-on-write rules
      for Tcl_Obj's.
      
      One choice or the other should be made.  It seems
      likely that the documentation should be changed to
      note the conditions where it is safe for the caller
      to modify the internal storage of a Tcl_Obj referenced
      by the returned pointer.
      
    4. foundin initialized to: "obsolete: 8.4a4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "10. Objects"
    10. title initialized to: "Tcl_GetString* doc inconsistency"
    11. type initialized to: "Bug"
  2. Ticket change [f05cc278e3] (rid 109182) by dgp on 2002-06-26 07:11:26:

    1. icomment:
      
      
      File Added - 25828: 500930.patch
      
      Logged In: YES 
      user_id=80530
      
      here's a patch.  please consider it for 8.4b.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Add attachment "500930.patch" [c5dc0b4e97] (rid 121656) by dgp on 2002-06-26 07:11:26.

  4. Ticket change [5081fea4eb] (rid 125982) by msofer on 2002-06-26 18:51:07:

    1. closedate changed to: "2002-06-26T11:51:07"
    2. closer changed to: "msofer"
    3. resolution changed to: "Accepted"
    4. status changed to: "Closed"