Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 245b788dd014a987bfa000aaa2381425f3dd273a
Ticket: 1096260fffffffffffffffffffffffffffffffff
Tcl_(Attempt)SetObjLength return codes non-standard
User & Date: muonics on 2005-01-05 06:51:03
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    This may just be one of those things that can't ever be
    changed because it will break compatibility, but
    Tcl_SetObjLength and Tcl_AttemptSetObjLength return
    backwards result codes.
    
    From the manpage:
    
    "Tcl_AttemptSetObjLength will take no action and return
    0 to
    indicate failure.   If there is enough memory to
    satisfy the request,
    Tcl_AttemptSetObjLength  behaves just like
    Tcl_SetObjLength and
    returns 1 to indicate success."
    
    From tcl.h:
    
    #define TCL_OK      0
    #define TCL_ERROR   1
    
    From hand to forehead:
    
    *smack*  :P
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "muonics"
  9. subsystem changed to: "10. Objects"
  10. title changed to:
    Tcl_(Attempt)SetObjLength return codes non-standard
    
  11. type changed to: "Bug"