Overview
| Artifact ID: | 3324e48dbec8342108cf9d55b8bff159c148ba5ff498447f367547cf0bd6f7ae |
|---|---|
| Ticket: | a34733451b2cf189528061944466cf7ce7015008
Regression with TIP #636 in foreach |
| User & Date: | apnadkarni on 2023-07-12 06:06:52 |
Changes
- icomment:
On further thought, I'll modify my third point as * `Tcl_DuplicateObj` was used in at least two ways. One was to make an unshared copy for further modification. The other was to ensure the internal rep remained valid (e.g. iterating a list) even though no modification was planned. `TclDuplicatePureObj` can replace `Tcl_DuplicateObj` in the first instance since anyways the `bytes` will be invalidated. On the other hand, it can only be applied in the second case in limited cases where the dup'ed object is not preserved. For example, immediately discarded after iteration on a list. In any case, all uses need to be examined for which of the two cases applies.
- login: "apnadkarni"
- mimetype: "text/plain"