| Description: |
When comm is loaded it overrides vwait, but has a bug in the implementation that manifests itself when the vwait variable has spaces in it. I get the error:
wrong # args: should be "::comm::VwaitOrig name"
while executing
"vwait [::itcl::scope flag]"
...
This is due to the following line of code in vwait.tcl:
set code [catch {uplevel 1 ::comm::VwaitOrig $varname} res]
I think that should be (note the use of list):
set code [catch {uplevel 1 [list ::comm::VwaitOrig $varname]} res]
As an aside, you may be saying "why would anyone use a variable name with spaces?". As you can see in the above error message, I'm vwait'ing on an itcl public variable, which resolves to something like "@itcl ::foo ::Foo::flag". When it gets eval'd by the upvar those spaces naturally cause havoc.
|