|
2002-08-07
| ||
| 23:00 | • Closed ticket [584650ffff]: GetBooleanFromObj always gens string rep plus 7 ... artifact: 079a1a6377 user: msofer | |
|
2002-07-22
| ||
| 15:30 | • Ticket [584650ffff]: 4 changes artifact: 434b73ba3b user: dkf | |
|
2002-07-21
| ||
| 22:24 | • New ticket [584650ffff]. artifact: bc82d900cf user: dgp | |
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.