Skip to content
Tcl Source Code Artifact [7f7e4e720e]
Login

Artifact [7f7e4e720e]

Artifact 7f7e4e720ed0a4d1f607a84af1a8a10f1f1e25086c986c3a244032186376c0ca:

Wiki page [branch/c11-tcloo-foreach] by dkf on 2025-10-27 11:48:41.
D 2025-10-27T11:48:41.167
L branch/c11-tcloo-foreach
N text/x-markdown
P d4668b65bb3cd1c2a23b78da50d9a864dd2bbae63d18e54869ecda9f7b3d3138
U dkf
W 414
This is based on the much wider changes in the [`c-std-update`](https://core.tcl-lang.org/tcl/timeline?r=c-std-update) branch.

This branch updates TclOO's `FOREACH`-related macros to use C11 variable placement, which is much neater in many common cases. But not all; the new `FOREACH_IDX` and `FOREACH_IDX_STRUCT` macros are for the cases where the actual indexes are required (either in the loop or afterward).
Z 752b29b789e54a6319ec4af094c39418