Overview
| Artifact ID: | 802113e2a932f4d4b2aca361fbf9311e0037bf23 |
|---|---|
| Ticket: | 2538432fffffffffffffffffffffffffffffffff
Tcl man page omits ${array(key)} syntax |
| User & Date: | royterry on 2009-01-26 19:56:11 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
The Tcl man page entry #8 Variable Subsitution says: ------------ Variable substitution may take any of the following forms: $name Name is the name of a scalar variable; the name is a sequence of one or more characters that are a letter, digit, underscore, or namespace separators (two or more colons). $name(index) Name gives the name of an array variable and index gives the name of an element within that array. Name must contain only letters, digits, underscores, and namespace separators, and may be an empty string. Command substitutions, variable substitutions, and backslash substitutions are performed on the characters of index. ${name} Name is the name of a scalar variable. It may contain any characters whatsoever except for close braces. ---------------- It is also legal to put a whole array reference in braces: ${array(xxx)}. I believe the man page leaves the opposite impression. A second line showing an array element in braces would correct this misleading omission. - foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "royterry"
- subsystem changed to: "69. Other"
- title changed to: "Tcl man page omits ${array(key)} syntax"
- type changed to: "Bug"