[Hecl-devel] Fixed {a [ b} bug... maybe
Brought to you by:
davidw
From: David W. <dav...@gm...> - 2006-11-11 23:03:06
|
Hi, I've been distracted with other things as of late, but I wanted to get back on track with Hecl. One thing that I wanted to fix up is [square braces] inside {curly braces} For example: set foo {a [ b} set bar {a \[ b} And so on. Tcl does something kind of strange in the second case if you treat $bar as a list - it does a second round of backslash quoting, so that lindex $bar 1 gives you [ instead of the literal \[ you might expect. I decided to make Hecl give you back the literal \[ . Although I don't recall the exact details, I believe that this was the conclusion we came to on the list, although my memory is a bit fuzzy, so I may be wrong, so please have a look and a think... -- David N. Welton - http://www.dedasys.com/davidw/ Linux, Open Source Consulting - http://www.dedasys.com/ |