Skip to content
Tcl Source Code Check-in [afa40f8750]
Login

Check-in [afa40f8750]

Overview
Comment:This issue had already been fixed in the code; all that remained was to write the documentation, which is now done. I also identified a limitation, which I have noted in the project plan. Existing functionality Since v14, `lset L 1 C` and `lappend L C` correctly store the canonical name `::C`. In v13, they still stored `C`. As for `lappend L 5`, it stores `::5`—exactly like the construct `(set {list.var.int}L 5)`—because `5` is a valid Tcl variable name. Both approaches therefore behave in the same way. An empty name is rejected in both cases. Documentation (French version, § 5.3, following the example of the variable link) This paragraph follows the rule established on October 19, which aligns with standard Tcl principles: tcl set r [lindex $L 0] ;# ::A (type var<int>) set $r ;# 7 set {var.int}R A ;# ::A ; set $R returns 7 set L(0) 8 ;# writes 8 into ::A A standalone link—when removed from its container—resolves to the variable's canonical name, and `set` returns its value. When accessed via a path within a container, reading follows the link. Writing via a path updates the target variable, subject to the enforcement of its defined contract. Any write operation involving a link results in the storage of the canonical name. Identified limitation A link to a local procedure variable has a canonical name specific to its execution frame (e.g., `frame:1:x`). While `$M(0)` correctly follows this link, `set [lindex $M 0]` fails (with the error "can't read 'frame:1:x'"), because this is not a name recognized by Tcl. I have described the limitation in the documentation and added an "item to be decided" to the roadmap, with three options: allow the variable lookup mechanism to recognize this name, as long as the scope exists; make a name usable within the current scope; stick to what is stated in the documentation. I have also added the test `t62_liens_ecriture` and a note in `noyau/LISEZMOI.md`. There are no code changes, so nothing needs to be recompiled; `typeparse.zip` is up to date.
Timelines: family | ancestors | descendants | both | tip-764_tcl90
Files: files | file ages | folders
SHA3-256: afa40f8750434ddfffe6f59e68d84d82e08f35e6dc0ad492c009c989bff5290b
User & Date: Florentis on 2026-10-23 09:56:21.977
Other Links: branch diff | manifest | tags
Context
2026-10-23
09:56
This issue had already been fixed in the code; all that remained was to write the documentation, whi... check-in: d01807137c user: Florentis tags: tip-764_tcl90
09:56
This issue had already been fixed in the code; all that remained was to write the documentation, whi... check-in: afa40f8750 user: Florentis tags: tip-764_tcl90
09:44
The issue regarding the schedule no longer occurs: `set $r`—where `$r` is a `var<int>` link—corr... check-in: ca5801aeac user: Florentis tags: tip-764_tcl90
Changes