Re: [Hecl-devel] More problems with lists
Brought to you by:
davidw
From: David W. <dav...@gm...> - 2006-08-31 08:52:57
|
> I guess there must be a fundamental problem with lists. Here is another > code snippet that does not work It's not lists at all, it's anything that uses setVal from a command. incr has the same problem: hecl> proc ic {} { puts [incr 1] } hecl> ic 2 hecl> ic 3 hecl> ic 4 hecl> ic 5 append, lappend, lset, linsert, incr will all exhibit the same behavior. That's why I'm contemplating a different method for Thing, setValIfCopyNotSet (or something nicer, presumably), that only sets a new value if the copy bit is not set. -- David N. Welton - http://www.dedasys.com/davidw/ Linux, Open Source Consulting - http://www.dedasys.com/ |