Safe interpreters lose ::tcl::mathfunc::min, ::tcl::mathfunc::max I've just noticed something odd: safe interpreters lose the min() and max() functions. These are the only ::tcl::mathfunc::* functions that are implemented as procs, and for some reason they are omitted in safe interps. Is this expected behavior, or a bug? ... 21 Jan 2010 00:11
TclOO: my varname does not work with arrays? Hi all, I have just observed that "my varname some_array(key)" returns an empty string, while "my varname some_array" returns the qualified name. Is this intended? George ... 21 Jan 2010 04:32
Help removing remote files with Expect I have tried this several ways. Apprarently I am just doing something very basic incorrectly. I need to upload an updated iso once a week. I want to remove the old iso, before uploading the new iso. I have tried spawning ssh and remove this file as: #!/usr/bin/expect set timeout -1 spawn ssh username(a)host.m... 25 Jan 2010 15:04
Graph Algorithms I'm writing a model that bears some resemblance to a spreadsheet model: cells with formulas that depend on the values of other cells. I'm trying to determine a natural order for evaluating the cells so as to minimize the number of iterations required to recompute the model. You can think of the model as a directe... 3 Feb 2010 11:41
Slimming down a tclkit So like a lot of people, I don't bother with a TCL "distro". I download the recent tclkit (these days from code.google.com) and fire it up and have pretty much everything I need right at hand. When I'm finished writing/debugging something and it runs fine from within tclkit, I use sdx to wrap it up into a standalon... 21 Jan 2010 23:38
protobuf I need Google protocol-buffers <http://code.google.com/p/protobuf/> for communication in our current project and was disappointed to see that there seems to be no Tcl language-binding (but for many other languages there is). Since the en-/de-coding is simple <http://code.google.com/intl/de/apis/ protocolbuffers/do... 21 Jan 2010 12:18
for loop variable scope Unfortunately, I don't have experience in programming in Tcl. In an old script there is $mh(hold_fh) insert $msg rename $msg "" foreach u [$mh(hold_fh) list "%u"] { if {![info exists uids($u)]} { break } } Is the loop variable 'u' defined here regardless... 20 Jan 2010 12:53
file stat and mode on Windows Is the mode value from file stat meaningful on Windows. Under tcl 8.5, it always seems to return 0644 even if you have permission write to the file. (This problem came up when I was trying to figure out why tcllib's ftpd package wouldn't let me delete a file.) Thanks, Keith ... 23 Jan 2010 17:41
weird behavior of lsort Hi all, I had the following problem while using lsort $ tclsh info pa 8.5.8 set allelems [list [list chr12 5] [list chr04 1] [list chr08 13]] {chr12 5} {chr04 1} {chr08 13} lsort -decreasing -index 1 $allelems {chr12 5} {chr08 13} {chr04 1} <-- !!!! lsort -decreasing -integer -index 1 $allelems {chr08 13... 19 Jan 2010 18:03
Tooltips for headers in TkTreectrl? I know how to accomplish a tooltip, but I do not know how to realize when the mouse is over a header item in TkTreectrl except respond to the Motion event and call identify all the time. This seems to be a bit excessive to call identify each time the mouse moves. How can I bind an event to realize that the mouse ... 24 Jan 2010 05:42 |