Date: Wed, 25 Jul 2001 15:53:20 EDT From: GDastgir@aol.com To: freebsd-questions@freebsd.org Subject: tcl/tk Message-ID: <74.d9f354f.28907db0@aol.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
I'm using tcl/tk 8.1 that came with my fbsd 2.2.6.
I'm still learning tcl and am playing around with the wish shell writing
interactive tcl commands/scripts. This is all going fine except for one
thing. I'm using tcl lists and the lreplace command that replaces elements in
a list, syntax:
lreplace list first last <args>
when this command is run the command line appears to confirm the relevant
list element replacement. However, when I run the set command on the list (or
puts) to reconfirm that the contents of the list have changed - the list is
displayed unchanged.
Why is this? I've checked Ousterhout's book and can't see what I'm doing
wrong.
Thanks,
Ghulam
[-- Attachment #2 --]
<HTML><FONT FACE=arial,helvetica><FONT SIZE=2>I'm using tcl/tk 8.1 that came with my fbsd 2.2.6.
<BR>I'm still learning tcl and am playing around with the wish shell writing
<BR>interactive tcl commands/scripts. This is all going fine except for one
<BR>thing. I'm using tcl lists and the lreplace command that replaces elements in
<BR>a list, syntax:
<BR>
<BR> lreplace list first last <args>
<BR>
<BR>when this command is run the command line appears to confirm the relevant
<BR>list element replacement. However, when I run the set command on the list (or
<BR>puts) to reconfirm that the contents of the list have changed - the list is
<BR>displayed unchanged.
<BR>
<BR>Why is this? I've checked Ousterhout's book and can't see what I'm doing
<BR>wrong.
<BR>
<BR>Thanks,
<BR>
<BR>Ghulam</FONT></HTML>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?74.d9f354f.28907db0>
