Overview
| Artifact ID: | 328623f384b223fba3b92a70a404db7a15f207c87f6647adcc3cba08a4a0a19f |
|---|---|
| Ticket: | f14b33ec9f900721ce156147ebd418ff7b930117
changed behaviour wrt command names, namespaces and resolution |
| User & Date: | emiliano on 2024-09-18 21:46:49 |
Changes
- icomment:
There's already name constraints: * Names can't contain the namespace separator * Namespace names can't be the empty string. wrt [dict with], there's already several ways it can fail to create the variables: * The dict contains a key which is the same as the dict variable. % set foo {foo 1 bar 2}; dict with foo {} missing value to go with key * The dict contains a key which maps to an already existing array. % array set bar {} ; set foo {bar 1 baz 2} ; dict with foo {} can't set "bar": variable is array * A key resolves to a namespace which doesn't exists. % set foo {baz::grill 2} ; dict with foo {} can't set "baz::grill": parent namespace doesn't exist The morale is: don't use [dict with] if you don't control the keys. - login: "emiliano"
- mimetype: "text/plain"