Overview
| Artifact ID: | 50455d3f75c2625196df161efbd7dc1b9e11b843 |
|---|---|
| Ticket: | 1710795fffffffffffffffffffffffffffffffff
First|Next|Done docs are confusing |
| User & Date: | dkf on 2007-05-02 06:05:32 |
Changes
- icomment:
Logged In: YES user_id=79902 Originator: NO Originally, Done was only called when you wanted to break out of iterating early, and this was found to work well enough in the basic implementations in tclDictObj.c. But later on (when I was writing the bytecode compiled versions IIRC) I discovered that this in fact sucked and was too hard to use right, and that it was better instead to arrange for Done to be always callable after the iteration completed. (I believe that the Done call can be avoided in the same circumstances that it always could be avoided, but it's easier to avoid having to explain it by making repeat calls idempotent.) I do not recall at what point I wrote the documentation. :-)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"