Skip to content
Tcl Source Code Update of ”branch/c11-tcloo-foreach”
Login

Update of ”branch/c11-tcloo-foreach”

Overview

Artifact ID: 7f7e4e720ed0a4d1f607a84af1a8a10f1f1e25086c986c3a244032186376c0ca
Page Name:branch/c11-tcloo-foreach
Date: 2025-10-27 11:48:41
Original User: dkf
Mimetype:text/x-markdown
Parent: d4668b65bb3cd1c2a23b78da50d9a864dd2bbae63d18e54869ecda9f7b3d3138 (diff)
Content

This is based on the much wider changes in the 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).