Community
Participate
Working Groups
foreach varCategory {vars locals globals} { foreach _var [info $varCategory] { The second line generates this error: Invalid argument:varCategory. Possible values:args,body,cmdcount,commands,complete,default,exists,frame,functions,globals,hostname,level,library,loaded,locals,nameofexecutable,patchlevel,procs,script,sharedlibextension,tclversion,vars Unless I prefix the 'info' with 'eval': foreach _var [eval info $varCategory] { It runs without any errors either way.