Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Editorial tinkering |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
6a2e1232b55e71d1bb19ac6747da4c35 |
User & Date: | dkf 2018-04-10 20:35:56.932 |
Context
2018-04-10
| ||
20:44 | Corrected branch name check-in: 0dcde8a6b3 user: dkf tags: trunk | |
20:35 | Editorial tinkering check-in: 6a2e1232b5 user: dkf tags: trunk | |
2018-04-09
| ||
07:37 | TIP #389 voting now in progress check-in: 65cd82c2e4 user: jan.nijtmans tags: trunk | |
Changes
Changes to tip/421.md.
1 2 3 4 5 6 7 8 9 10 | # TIP 421: A Command for Iterating Over Arrays State: Draft Type: Project Tcl-Version: 8.7 Vote: Pending Post-History: Author: Karl Lehenbauer <[email protected]> Author: Brad Lanam <[email protected]> Author: Donal K. Fellows <[email protected]> Created: 28-Nov-2012 | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # TIP 421: A Command for Iterating Over Arrays State: Draft Type: Project Tcl-Version: 8.7 Vote: Pending Post-History: Author: Karl Lehenbauer <[email protected]> Author: Brad Lanam <[email protected]> Author: Donal K. Fellows <[email protected]> Created: 28-Nov-2012 Updated: 24-Oct-2017 ----- # Abstract This TIP proposes an efficient mechanism for iterating over the contents of a large array. |
︙ | ︙ | |||
52 53 54 55 56 57 58 | 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 | | < | | | | | | 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | 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: `bll-array-for` Code is also available [here](https://github.com/flightaware/Tcl-bounties/issues/12) within a comment. The implementation is no faster then using **array names** or **array get**, but uses much less memory. # References [Bounty #12](https://github.com/flightaware/Tcl-bounties/issues/12), [Bounty #27](https://github.com/flightaware/Tcl-bounties/issues/27) # Copyright This document has been placed in the public domain. |