Overview
| Comment: | [x] set {paire}s {aut.nom}x : dedicated message "aut.nom names a field of aut, not of paire" (Claude) The dedicated message is now in place: this is version v15l. Why the "wrong # args" error was occurring: In `ProductFieldTag` (within `tclTypedVar.c`), a tag `{T.field}`—where `T` does not match the product currently being constructed—was not recognized as a valid tag. Consequently, the value was treated as a positional argument, which triggered an argument count mismatch. I also identified a second scenario, which already existed in v15: when all values carried tags belonging to a different product (e.g., `{aut.nom}x {aut.age}3`), they were processed as positional arguments without any warning, resulting in `x 3`. Current behavior: Syntax Result set {paire}s {aut.nom}x aut.nom names a field of aut, not of paire … {aut.nom}x {n}3 same message … {aut.nom}x {aut.age}3 same message (previously: `x 3` without warning) … {aut.zz}x aut.zz: aut has no field "zz", and the value being built is a paire {nom}x {n}3, {paire.nom}x {paire.n}3, x 3 unchanged: `x 3` Testing against v15: There is only one new difference in the project's test suite: line 7 of `t24`, which specifically tests this case. I have regenerated `t24_produit_champ.out`. A new test, `t65_champ_etranger`, has been added. All Tcl `set*`, `var`, and `upvar` tests pass. One example requires correction as a result. `exemples/niveau2.tcl` was failing with an error at line 167. This is not related to that specific item; rather, it is a side effect of the fix for the `S($champ)` selector, which now rejects an inconsistent message at the moment of its construction—a detail I had overlooked when submitting that fix. The `set` operation is now wrapped in a `catch` block, and the example correctly displays both instances of rejection. To update: replace `tclTypedVar.c` in the `generic/` directory, then run `make`. There is no kernel-level patch required; `maj.sh` handles the update. This is noted in `noyau/LISEZMOI.md` (v15l). In `doc/ANNOTATIONS.fr.md`, I have added the example under the "All or Nothing" ("Tout ou rien") section and removed the corresponding point from §17. The item has been marked as completed in the project schedule. |
|---|---|
| Timelines: | family | ancestors | descendants | both | tip-764_tcl90 |
| Files: | files | file ages | folders |
| SHA3-256: |
be20ecadc1e0c1e5cf8412545647f593 |
| User & Date: | Florentis on 2026-10-23 10:45:43.292 |
| Other Links: | branch diff | manifest | tags |
Context
|
2026-10-23
| ||
| 11:07 | Let’s address the point: "Variants with the same form—if multiple equally strict variants are ap... check-in: b00991eb89 user: Florentis tags: tip-764_tcl90 | |
| 10:45 | [x] set {paire}s {aut.nom}x : dedicated message "aut.nom names a field of aut, not of paire" (Claude... check-in: be20ecadc1 user: Florentis tags: tip-764_tcl90 | |
| 10:32 | Error messages now explicitly name the variants (v15k). Additionally, reading from an inactive varia... check-in: eb4d87204c user: Florentis tags: tip-764_tcl90 | |
Changes
Modified generic/tclTypedVar.c
from [f2a7358a42]
to [6c7b9c8a53].
[diff]
Modified typeparse/doc/ANNOTATIONS.fr.md
from [d0a6466429]
to [78e9843f1b].
[diff]
Modified typeparse/exemples/niveau2.tcl
from [eab7ebe44c]
to [5860255cbe].
[diff]
Modified typeparse/noyau/LISEZMOI.md
from [732cb388fd]
to [ea84fffa49].
[diff]
Modified typeparse/tclTypedVar.c
from [f2a7358a42]
to [6c7b9c8a53].
[diff]
Modified typeparse/tests_tclsh/t24_produit_champ.out
from [b251304010]
to [5b9deb24cc].
[diff]
Added typeparse/tests_tclsh/t65_champ_etranger.out version [758cc00701].
Added typeparse/tests_tclsh/t65_champ_etranger.tcl version [24839c3212].