Skip site navigation (1)Skip section navigation (2)
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

--part1_74.d9f354f.28907db0_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

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

--part1_74.d9f354f.28907db0_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

<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> &nbsp;&nbsp;&nbsp;lreplace list first last &lt;args&gt;
<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>

--part1_74.d9f354f.28907db0_boundary--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?74.d9f354f.28907db0>