Artifact ef484272f339989e5b4fd9f792bebb9adef2ed7e3aec1b8115f3d24876bbd84f:
- File typeparse/tests_tclsh/t63_separateurs.out — part of check-in [78c932af24] at 2026-10-23 10:16:39 on branch tip-764_tcl90 — 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. (user: Florentis, size: 707) [annotate] [blame] [check-ins using]
{int}a; {int}b, {string}c -> 1 mixing ";" and "," at the same level: group and name the inner part, as {int}a; {{int}b, {string}c}u, or define it with type def {int}a, {int}b; {string}c -> 1 mixing ";" and "," at the same level: group and name the inner part, as {int}a; {{int}b, {string}c}u, or define it with type def {int}a; {{int}b, {string}c} -> 1 a product field must be written {type}name: a group needs its name after the closing brace, as {int}a; {{int}b, {string}c}u {int}a; {{int}b, {string}c}u -> 0 {{int}a; {int}b}p, {string}c -> 0 {{int}a; {int}b}, {string}c -> 0 {int}, {string} -> 0 {int}x; {int}y -> 0