Re: A subst-antial question
- From: Dan Smart <news900@xxxxxxxxxxxx>
- Date: Fri, 28 Apr 2006 23:24:27 -0400
On 2006-04-28 09:01:16 -0400, John Seal <sealj@xxxxxxxxxxxxxxxxx> said:
Dan Smart wrote:That isn't a list, it's a string, that happens (unlike many others) to be convertable to a list.I'm also going to take this opportunity to whine about how you can't create a multi-statement list and eval it.
You must mean something else.
% set multiStatementList {
> set foo(a) 1
> set foo(b) 2
> }
I *do* understand what you mean about [list] escaping semicolons. My solution has always been to build the script as a string and [append] the semicolons instead of [lappend] them. The [join $listOfLists ";"] solution also treats the script and the semicolons as strings.
And is hence broken, well the not actually working bit is the real kicker, but if it did, the conversion to string would be pretty annoying.
And it matters because unless you can treat scripts as lists, safely operating on them is very (very) difficult.
Dan
.
- References:
- A subst-antial question
- From: Busirane
- Re: A subst-antial question
- From: Don Porter
- Re: A subst-antial question
- From: Busirane
- Re: A subst-antial question
- From: Kip Rugger
- Re: A subst-antial question
- From: Busirane
- Re: A subst-antial question
- From: Donal K. Fellows
- Re: A subst-antial question
- From: John Seal
- Re: A subst-antial question
- From: Don Porter
- Re: A subst-antial question
- From: Dan Smart
- Re: A subst-antial question
- From: John Seal
- A subst-antial question
- Prev by Date: Re: Tcl/Tk 8.4.13 released
- Next by Date: Re: A subst-antial question
- Previous by thread: Re: A subst-antial question
- Next by thread: Re: A subst-antial question
- Index(es):
Relevant Pages
|