Artifact b6a6e6d4486d3daf220979c3a2bad7363824d93923eea2fceb6b826dc158707e:
- File typeparse/tests_tclsh/t63_separateurs.tcl — 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: 463) [annotate] [blame] [check-ins using]
# t63 : ";" et "," mêlés au même niveau refusés ; un groupe champ de produit a un nom ; # les variantes anonymes d'une somme restent permises. foreach d { {{int}a; {int}b, {string}c} {{int}a, {int}b; {string}c} {{int}a; {{int}b, {string}c}} {{int}a; {{int}b, {string}c}u} {{{int}a; {int}b}p, {string}c} {{{int}a; {int}b}, {string}c} {{int}, {string}} {{int}x; {int}y} } { incr k; puts "[format %-34s $d] -> [catch {type def M$k $d} m] $m" }