Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Weird Tcl-DP and Expect interference?

6 views
Skip to first unread message

hachuah

unread,
Jul 20, 2006, 5:17:55 AM7/20/06
to
Hi,

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

George Peter Staplin

unread,
Jul 25, 2006, 8:02:53 AM7/25/06
to

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

0 new messages