Overview
| Artifact ID: | 454342882bda9cdab82b2573dd89fc4ee7c2e7f0 |
|---|---|
| Ticket: | 2016740fffffffffffffffffffffffffffffffff
Inverse logic in Tcl_DictObjNext() example on man page |
| User & Date: | sbron on 2008-07-12 18:00:24 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- comment changed to:
The Tcl_DictObjNext() man page shows the following code in an example: for (; done ; Tcl_DictObjNext(&search, &key, &value, &done)) { However, the done variable is only set to TRUE when the whole dictionary has been processed and it is FALSE as long as the loop should continue. So the check of the for loop should be inverted: for (; !done ; Tcl_DictObjNext(&search, &key, &value, &done)) { - foundin changed to: "obsolete: 8.5.3"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "sbron"
- subsystem changed to: "10. Objects"
- title changed to:
Inverse logic in Tcl_DictObjNext() example on man page
- type changed to: "Bug"