Re: lappend



On Mar 2, 4:20 pm, Robert Heller <hel...@xxxxxxxxxxxx> wrote:
At Wed, 2 Mar 2011 05:37:46 -0800 (PST) skyworld <chenyong20...@xxxxxxxxx> wrote:



Hi,

I wrote a program as this:

  set my_result ""

First mistake (although minor):

Try this instead:

    set my_result [list]



<snip>

How is that even a minor mistake? The result of [list] is "". If the
idea is to indicate that my_result is a list then I think this is the
wrong way to do it. As EIAS the intention is much clearer (throughout
the code) by an appropriate variable name (such as waiting_list).

Mark
.