#21 lassign name clash

open
nobody
None
5
2011-05-20
2011-05-20
Reinhard Max
No

EXMH's lassign proc overweites the syntactically different lassign command that got added in Tcl 8.5. As some of Tk's library script code uses lassign, this leads to errors from the overwritten command.

This bug was reported against the openSUSE exmh package (https://bugzilla.novell.com/show_bug.cgi?id=684968) and I worked around it in the RPM by renaming the proc into "exmh_lassign". As a better upstream fix, I suggest to convert the places where lassign is being used to the syntax of the 8.5 version and add the lassign proc from tcllib package as a fallback for older versions (http://tcllib.cvs.sourceforge.net/viewvc/tcllib/tcllib/modules/struct/list.tcl).

Discussion