GetBooleanFromObj always gens string rep
Closed / Duplicate584650ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-07-21 22:24:10
It appears that Tcl_GetBooleanFromObj always calls SetBooleanFromAny which always generates and reparses a string rep. At the very least, a Tcl_Obj that is already of tclBooleanType ought to just report its internal rep. Seems it would be easy to make more efficient conversions from integer and internal types as well, and leave the string processing for only when it's really necessary.
dkfplain2002-07-22 15:30:26
Logged In: YES user_id=79902 Are all integer values (and in particular, all strings that interpret as integers) valid booleans?
msoferplain2002-08-07 23:00:22
Logged In: YES user_id=148712 Duplicates [Bug 472576]
Log in (anonymous is fine) to add a comment.