Replies: 2 comments 2 replies
-
Honestly I can't remember the original reason for the lsearch difference. Probably just seemed more sensible. Remember that in the early days Jim Tcl was nowhere near compatible with Tcl (no regular I/O, no array, file, regexp, etc.) so exact compatibility was less important. Now I generally keep compatibility where possible. There is no explicit list I'm aware of other than what is listed in the introduction under "Some notable differences with Tcl 8.5/8.6/8.7". The rest are in the docs, typically prefixed by "Note" Feel free to start a wiki page |
Beta Was this translation helpful? Give feedback.
-
btw, you can always do something like this to modify builtin commands
|
Beta Was this translation helpful? Give feedback.
-
This may belong in a different forum ...
I've recently decided to add Tcl to my toolkit, and combined that with trying out Jim on an embedded project. Blending the two, I'm using jimsh (v. 0.82, built on 4/13/2024) instead of tclsh. Following the tutorial at https://www.tcl.tk/man/tcl8.5/tutorial/tcltutorial.html, the first hiccup came on lesson 19 , where lsearch is covered. Using jimsh, the lsearch command requires the -glob option for the example code to work, whereas with tclsh (v.8.6) the -glob option is on by default. I know Jim is heavily "stripped down"; was this an intentional design decision? If so, is there a global option I can "set and forget"? Am I overlooking something in my naiveté? Here's a command line sequence that shows my concern:
Inserting the -glob option resulted in identical output from tclsh and jimsh.
Assuming this is intentional (and I can think of several reasons it might be), is there somewhere a consolidated list of such differences (such as an Errata page for a book, even though this would not be "errata")
Beta Was this translation helpful? Give feedback.
All reactions