|
|
Orchid XP v7 wrote:
> Tcl encodes all data types as strings. I've been bitten by this
> before... You write a Tcl script, it works fine, and then it encounters
> some input that happens to contain a curly-bracket or a dollar sign and
> Weird Crap happens...
Only if you don't treat your lists as lists and your strings as strings.
Otherwise, the rules are extremely straightforward.
> [I'm sure there's a way to avoid this. It's just tricky, and it makes me
> nervous.]
I never get bitten by this. The only time this happens is when you pass
a string to something that indexes into a list, without first splitting
the string into lists appropriately.
--
Darren New / San Diego, CA, USA (PST)
"That's pretty. Where's that?"
"It's the Age of Channelwood."
"We should go there on vacation some time."
Post a reply to this message
|
|