Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2006-08-09
17:23 • Closed ticket [529991ffff]: Add string is list plus 7 other changes artifact: d1dade5e86 user: dkf
2002-03-14
18:20 • New ticket [529991ffff]. artifact: dd9620f902 user: dgp

Add [string is list]

Closed / Duplicate529991ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 20 years ago
Descriptionplain2002-03-14 18:20:44
When one needs to test whether Tcl can recognize a
particular string value as a valid list, it would
lead to more readable code to have a command for
performing that test:

if {[string is list $x]} {...}

rather than bringing error throwing and catching into
the picture

if {![catch {llength $x}]} {...}
dkfplain2006-08-09 17:23:04
Logged In: YES 
user_id=79902

see issue 1491459 which addresses this in more detail
Log in (anonymous is fine) to add a comment.