I'm experiencing a weird problem when I do
package require Expect
my Tcl-Dp dp_atclose $dp_rpcFile doesn't work anymore; ie. when I close
the Tcl-Dp connection, the [dp_atclose $dp_rpcFile list] is no longer
executed.
I'm using dp 4.0 and tcl 8.4.6e and Expect 5.41.0
Anyone have any ideas???
thanks,
andrew
Hi,
The problem I think is that Expect provides its own [close] command by
default. Based on the code it seems you can change EXP_NOPREFIX
usage in the Expect sources, so that exp_close and so on are created
instead, but I'm not certain. You might be able to just rename the
expect commands more easily.
I'm not certain, but this would probably work:
rename close tcl_close
package require Expect
rename close exp_close
rename tcl_close close
This makes me wish we had something like word lists from Forth.
You could also probably use a slave interpreter for Expect.
-George