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

Artifact [7d18871970]

Artifact 7d188719707d7dbaf4e2fcba8c459a01b9c94a72:

Ticket change [7d18871970] - New ticket [1710795fffffffff|1710795fff] <i>First|Next|Done docs are confusing</i>. by dgp on 2007-05-01 20:28:15.
D 2007-05-01T20:28:15
J assignee dkf
J cmimetype text/plain
J comment \nThe\sTcl_DictObj(First|Next|Done)\sroutines\nare\soffered\sto\smanage\san\siteration\sthrough\nthe\scontents\sof\sa\sdictionary.\n\nThe\sdocumentation\ssays:\n\n"The\sdonePtr\sargument\spoints\sto\sa\svariable\sthat\sis\nupdated\sto\sbe\szero\s\sof\sthere\sare\sfurther\skey/value\npairs\sto\sbe\siterated\sover,\sor\snon-zero\sif\sthe\niteration\sis\scomplete."\n\nI\sinterpret\sthat\sto\smean\sa\sresult\sof\s(*donePtr\s=\s1)\nmeans\sthe\snext\scall\sto\sTcl_DictObjNext\swould\sfail\nto\sreturn\sanything,\sso\sit\sneed\snot\sbe\smade.\n\nThat's\snot\swhat\sthe\simplementation\sdoes.\n\nThe\simplementation\shas\s(*donePtr\s=\s1)\smeans\sthat\nthe\scurrent\scall\sdid\snot\sreturn\sanything.\n\nEither\sscheme\sis\sworkable,\sbut\sthe\sdocs\sneed\nto\sbe\smore\sclear.\s\sConfusion\sabout\swhether/when\nTcl_DictObjDone()\sneeds\sto\sbe\scalled\scaused\nTcl\sBug\s1710709.\n
J foundin obsolete:\s8.5a6
J is_private 0
J priority 7\sHigh
J resolution None
J status Open
J submitter dgp
J subsystem 15.\sDict\sObject
J title First|Next|Done\sdocs\sare\sconfusing
J type Bug
K 1710795fffffffffffffffffffffffffffffffff
U dgp
Z f026b70bf58142671a93e783189f698f