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

Check-in [a04ace5134]

Overview
Comment:The bug has been fixed (v15h). I went a bit further than what was noted in the schedule: instead of rejecting AB(0,1), I made it functional. My response from October 22nd (“0,1 is not a path”) was incorrect: `set {pt}Q(x,y) 1 2` works for a product, so (0,1) is indeed a valid construction path. It simply didn’t work for a list. The root cause Construction via a path—`set {T}v(a,b) x y`—was previously only implemented for products and sums. For any other type, the identifier `AB(0,1)` was treated as an array element; Tcl would create the array `AB` and then fail with a “no such element in array” error. The empty array would remain, causing the subsequent `set {segment}AB $A $B` command to fail as well. The fix A list is constructed by specifying its indices. All indices—from 0 to N-1—must be provided, in any order, as lists have no default values: tcl set {segment}AB(0,1) $A $B ;# {0 0} {4 4} set {segment}S(1,0) {4 4} {0 0} ;# same result set {segment}S(0.x,0.y,1.x,1.y) 1 2 3 4 ;# {1 2} {3 4} Each error now triggers a clear, descriptive message: a missing index: “element 1 of poly is not given: … needs all of them, from 0 to 2”; a duplicate index: “element '0' of poly is assigned more than once”; an invalid index name: “'a' is not an index of poly”; Incorrect number of elements: a segment requires exactly 2 elements, but 3 were provided. A dictionary is constructed via its keys: `set {dict.int}D(a,b) 1 2` results in `a=1, b=2`. Other types are rejected before any variable lookup occurs, meaning nothing is created: `set {int}A(k) 5` -> `can't set "A(k)": a typed variable is a scalar, not an array element;` `a constructor path (k) names fields of products, indices of lists, or` `keys of dictionaries, and 'int' is none of these.` Verifications Compared to v15, the project’s tests and examples remain unchanged, with one exception: the error message for `t52` now mentions lists and dictionaries. Tests `t35` and `t37`, as well as `t55` through `t59`, continue to yield their expected results. On the Tcl side, I ran 12 test files (covering variables, arrays, `set`, `upvar`, `incr`, dictionaries, etc.), totaling 1,515 tests; the only failure—found in `execute.test`—is already among the known failures from v15. Update Two type-related source files, `tclTypePath.c` and `tclTypedVar.c`, with no kernel patch required. Then, `maj.sh` was run. I added the `t60_construction_liste` test and regenerated `t52`. The `v15h` section can be found in `noyau/LISEZMOI.md`, the French documentation includes a paragraph in section 7.1, and the item has been marked as complete in the project schedule.
Timelines: family | ancestors | descendants | both | tip-764_tcl90
Files: files | file ages | folders
SHA3-256: a04ace51343f00a475d549fe75fe39833d134126da77863b8defa0bf07369786
User & Date: Florentis on 2026-10-23 09:26:11.991
Other Links: branch diff | manifest | tags
Context
2026-10-23
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
09:26
The bug has been fixed (v15h). I went a bit further than what was noted in the schedule: instead of ... check-in: a04ace5134 user: Florentis tags: tip-764_tcl90
09:10
The annotated step is now approximately 3.6 times faster in the area calculation: 50.9 ms in v15, co... check-in: ac9be301b1 user: Florentis tags: tip-764_tcl90
Changes