Skip to content
Tcl Source Code Changes To Proposed changes to the Tcl/Tk manual pages
Login

Changes To Proposed changes to the Tcl/Tk manual pages

Changes to "Proposed changes to the Tcl/Tk manual pages" between 2026-11-03 22:16:58 and 2026-11-11 08:57:13

︙
128
129
130
131
132
133
134




135
136
137
138
139
140
141
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145







+
+
+
+







set options [list -value 1 -word one -translation uno]
while [llength $options] {
   lassign $options opt val
   # do something with 'opt' and 'val'
}
```

## Tcl → lfilter
1. The syntax is inconsistently named. The first version of the command syntax uses "expression", the second uses "body". Both are scripts, so should be called "body", especially as the term "expression" is never mentioned again in the page.
2. The fact that the return value of "body" is interpreted as a boolean value in terms of  Tcl_GetBooleanFromObj, is only mentioned late in the manual text. It should instead be mentioned where the return value is defined in the first place.


## Tcl → lmap
1. There is no simple example of the first form of the command, operating on only one list

```
# note that you cannot use {return "$a=$b"} as the body: that would terminate the lmap loop after the first iteration
lmap {a b} [list a 1 b 2 c 3] {
︙