Re: [tcljava-user] lsearch "inline" option not found...
Brought to you by:
mdejong
From: Mo D. <mo...@mo...> - 2009-04-14 17:48:45
|
Rick & Charlie wrote: > I am trying to pass some .tcl files to the Jacl interpreter( > tcljava1.4.1 ) that contain the "lsearch" command that use the > "-inline" option. I get the following error thrown when this is > encountered... > > bad option "-inline": must be -ascii, -decreasing, -dictionary, > -exact, -increasing, -integer, -glob, -real, -regexp, or -sorted > > > Does anybody know how to get around this? Is there a newer version out > there that understands the -inline option for lsearch? Here is an > example of the .tcl code that throws the above error. > > if {[lsearch -inline $MEM_CHANNEL_CONFIG U*] eq "UDIMM_SODIMM"} { > Yes, the Jacl implementation of some commands is not as up to date as the C implementation of Tcl. There is no specific workaround, you will most likely need to change the code to use the older lsearch command API. Mo DeJong |