Artifact 758cc00701e721318f4a5bf2de377efe8cb6bbb7fbacac8dd1c9e52a5cb27008:
- File typeparse/tests_tclsh/t65_champ_etranger.out — part of check-in [be20ecadc1] at 2026-10-23 10:45:43 on branch tip-764_tcl90 — [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. (user: Florentis, size: 565) [annotate] [blame] [check-ins using]
{aut.nom}x seul 1 aut.nom names a field of aut, not of paire {aut.nom}x {n}3 1 aut.nom names a field of aut, not of paire {aut.age}3 {n}1 1 aut.age names a field of aut, not of paire tous étrangers 1 aut.nom names a field of aut, not of paire {aut.zz}x (champ inconnu) 1 aut.zz: aut has no field "zz", and the value being built is a paire {nom}x {n}3 (correct) 0 x 3 {paire.nom}x {paire.n}3 0 x 3 positionnel x 3 0 x 3