Overview
| Artifact ID: | eb53c4a636e68c1c3b24a0e1b1ac7227857c7272 |
|---|---|
| Ticket: | 1237040fffffffffffffffffffffffffffffffff
dict compiler |
| User & Date: | dkf on 2005-07-15 17:46:26 |
Changes
- icomment:
Logged In: YES user_id=79902 By automatic variable, do you mean a local temporary Var or a C variable or what? Storing the Tcl_DictSearch in the bytecode structure won't work because of recursion. Putting the value in a (stack-allocated) C variable could work, but it'd be tricky to get right because you can nest iterations (and we really want to reduce the amount of stack space required for TEBC anyway) which means you'd have to keep an array (or list) of them; you could do it, but it'd be a lot of work to get right (not that we couldn't do this in the future, of course, but it would break the TDK compiler if we did it whereas my current solution remains compatible on this front at least). The easiest way is to store the iterator context in a Var, since they're handled right anway, which is what I do. :^)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"