Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tcl_(Attempt)SetObjLength return codes non-standard

Closed / Invalid1096260fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 20 years ago
Descriptionplain2005-01-05 06:51:03
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
msofer Closed ticket [1096260fff]. [History diff]2006-09-30 08:13:37
Log in (anonymous is fine) to add a comment.