Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. 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)) {
    
    
  4. foundin changed to: "obsolete: 8.5.3"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "sbron"
  10. subsystem changed to: "10. Objects"
  11. title changed to:
    Inverse logic in Tcl_DictObjNext() example on man page
    
  12. type changed to: "Bug"