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: |
d01807137cdae801f7c1e7a51c6827e2 |
| User & Date: | Florentis on 2026-10-23 09:56:45.811 |
| Other Links: | branch diff | manifest | tags |
Context
|
2026-10-23
| ||
| 10:16 | I have implemented points 1 and 2 in tclTypeParse.c; anonymous sum variants remain permitted, as pre... check-in: 78c932af24 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: 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 | |
Changes
Added typeparse/tests_tclsh/t62_liens_ecriture.tcl version [7c0faa5586].