Consider the following simple exercise:
package require Tclx
keylset myArray "v1.5" "ready"
puts $myArray
The expected output:
{v1.5 ready}
The actual output:
{v1 {{5 ready}}}
My questions are
- This seems to be an error in keylset, I have confirmed this behavior on both 8.4 and 8.5
- How do I get around it? I have tried several ways to quote the key to no avail.
It’s not a bug, it’s a feature. 🙂
Dot is a hierarchical key separator in keyed list.
See the example for explanation: