Overview
| Comment: | I have implemented points 1 and 2 in tclTypeParse.c; anonymous sum variants remain permitted, as previously decided (v15j). {int}a; {int}b, {string}c -> Mixing ";" and "," at the same level: either group and name the {int}a, {int}b; {string}c inner part—e.g., {int}a; {{int}b, {string}c}u—or define it using a type definition. {int}a; {{int}b, {string}c} -> A product field must be written as {type}name; a group requires a name following the closing brace—e.g., {int}a; {{int}b, {string}c}u. {int}a; {{int}b, {string}c}u -> Accepted. {{int}a; {int}b}p, {string}c -> Accepted (named variant 'p'). {{int}a; {int}b}, {string}c -> Accepted (anonymous variant). {int}, {string} -> Accepted (union of types). Changes to the code: Previously, anonymous fields originated from a single function, `SumToField`, which converted any sum within a product into an unnamed field. I have removed this function. Now, when combining two elements using ";" or ",": If one element is a construct of the "other" type (e.g., a sum without braces inside a product, or vice versa), it is rejected as an invalid mix. If it is an unnamed sum enclosed in braces, or a named sum type used without a field name, it is processed under the rules for fields and is rejected—just as any other unnamed field would be. Verification: None of the tests or examples in the project utilized the forms that are now disallowed. The project tests and examples (including cstruct, arduino, and geometrie/verifier.tcl) yield the same results as before, and tests t35 through t62 continue to produce their expected results. Update. A single file, tclTypeParse.c—with no kernel patch—followed by maj.sh. I have added: the test t63_separateurs; the v15j section in noyau/LISEZMOI.md; a new phrasing of the rule in the French documentation, replacing "same precedence." I have also removed the corresponding open item from § 17. 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: |
78c932af24891aca7ad1c8e6234ee1ff |
| User & Date: | Florentis on 2026-10-23 10:16:39.833 |
| Other Links: | branch diff | manifest | tags |
Context
|
2026-10-23
| ||
| 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 | |
| 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 | |
Changes
Modified generic/tclTypeParse.c
from [7654e870ae]
to [d209cd47d7].
[diff]
Modified typeparse/doc/ANNOTATIONS.fr.md
from [ada7b6c93e]
to [d62a5e2efe].
[diff]
Modified typeparse/noyau/LISEZMOI.md
from [fed4cc4c52]
to [a27f370d1d].
[diff]
Modified typeparse/tclTypeParse.c
from [7654e870ae]
to [d209cd47d7].
[diff]
Added typeparse/tests_tclsh/t63_separateurs.out version [ef484272f3].
Added typeparse/tests_tclsh/t63_separateurs.tcl version [b6a6e6d448].