Check-in [d037db9c8b]

Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added clarification discussed on tcl-core and elsewhere.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d037db9c8b2cc397b813af979e3c3e091ece4120b418431eda5a5c0c9b2333a7
User & Date: dkf 2018-04-11 13:00:27.563
Context
2018-04-15
08:46
Documented in TIP #496 that -justify can only be honored if there is enough display space, and a bit of reformatting. check-in: 6896b0788d user: fvogel tags: trunk
2018-04-11
13:00
Added clarification discussed on tcl-core and elsewhere. check-in: d037db9c8b user: dkf tags: trunk
2018-04-10
20:57
Updated index check-in: d8578b82cc user: dkf tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to tip/421.md.
49
50
51
52
53
54
55




56
57
58
59
60
61
62
This will iterate internally over the elements of the array called
_arrayName_ in array-iteration order \(i.e., the same as that used by the
other **array** subcommands\), setting the variable _keyVar_ to the name of
the element and the variable _valueVar_ to the content of the element before
evaluating the script _body_. The result will be the empty string \(excepting
errors, **return**, etc.\) and any contained **break** and **continue**
will have their normal interpretation as loop control operations.





# Implementation

Branch: `tip-421` (Code is also available
[here](https://github.com/flightaware/Tcl-bounties/issues/12) within a
comment, but that is _not_ the definitive version.)








>
>
>
>







49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
This will iterate internally over the elements of the array called
_arrayName_ in array-iteration order \(i.e., the same as that used by the
other **array** subcommands\), setting the variable _keyVar_ to the name of
the element and the variable _valueVar_ to the content of the element before
evaluating the script _body_. The result will be the empty string \(excepting
errors, **return**, etc.\) and any contained **break** and **continue**
will have their normal interpretation as loop control operations.

Modifying the array while this command is iterating over it will make the
**array for** command terminate with an error once the current execution of
_body_ finishes.

# Implementation

Branch: `tip-421` (Code is also available
[here](https://github.com/flightaware/Tcl-bounties/issues/12) within a
comment, but that is _not_ the definitive version.)