From: Reinhard M. <ma...@tc...> - 2006-05-22 18:35:55
|
Hi, On Mon, 22 May 2006 at 11:03, Jeff Hobbs wrote: > and since this only serves the purpose of determining if input read > into Tcl may possibly be an invalid list, [...] an empty list is not invalid. > old if {![catch {llength $line} len] && $len} { ... > new if {[string is list -strict $line]} { ... if {[string is list $line] && [llength $line] > 0} { ... ... in the good old tradition of Tcl to be explicit. cu Reinhard |