Overview
| Comment: | Complete revision of "sums" (sum types). A distinction is now made between two clearly separate categories: "unions," where the specific variant can be reliably inferred from the structure of the data string, and "sums," where the structure of the data string is insufficient to definitively determine the variant. A new syntax for unions has been introduced, now utilizing the `|` symbol. E.g.: `type def matrix {{list(3).list(3)}matrice3x3 | {list(2).list(2)}matrix2x2}` Any ambiguous union will be rejected during construction, triggering an error message. "Sums" now function like "tagged unions" in C—that is, they consist of a union paired with a tag. Consequently, one must reference the tag to identify the specific variant. Sums are always written using commas (`,`). E.g.: `type def Temperature {{double}celsius, {double}farenheit}` |
|---|---|
| Timelines: | family | ancestors | descendants | both | tip-764_tcl90 |
| Files: | files | file ages | folders |
| SHA3-256: |
289eebd31b384f5ffa9d4e9aec6b64a4 |
| User & Date: | Florentis on 2026-11-06 11:24:44.847 |
| Other Links: | branch diff | manifest | tags |
Context
|
2026-11-06
| ||
| 12:35 | correctif cproc pour tcc 0.9.27 windows check-in: 323b800069 user: Florentis tags: tip-764_tcl90 | |
| 11:24 | Complete revision of "sums" (sum types). A distinction is now made between two clearly separate cate... check-in: 289eebd31b user: Florentis tags: tip-764_tcl90 | |
| 10:11 | optimisation check-in: 35988e1227 user: Florentis tags: tip-764_tcl90 | |
Changes
Modified typeparse/MANUAL-deref.md
from [d45ee21441]
to [5832cbbd97].
[diff]
Modified typeparse/MANUAL.de.md
from [145c80fe7c]
to [a0b96f97f2].
[diff]
Modified typeparse/MANUAL.en.md
from [93c6e23759]
to [5906fc42cf].
[diff]
Modified typeparse/MANUAL.es.md
from [cefb0e8ba9]
to [09f62414c2].
[diff]
Modified typeparse/MANUAL.it.md
from [f2bef1b9f3]
to [1ea2b72900].
[diff]
Modified typeparse/MANUAL.nl.md
from [51c31a2682]
to [854ab085ce].
[diff]
Modified typeparse/MANUAL.pt.md
from [d12ebe99fa]
to [0f47163c31].
[diff]
Modified typeparse/MANUEL.md
from [6c99687c03]
to [e88e26f4fc].
[diff]
Modified typeparse/REPRISE.md
from [5c1c5d5d9a]
to [5ece2a6a63].
[diff]
Modified typeparse/VERSION
from [21f0d220de]
to [83c0977544].
[diff]
Modified typeparse/doc/764.md
from [71bdc9cf69]
to [9c261fb2dd].
[diff]
Modified typeparse/doc/ANNOTATIONS.fr.md
from [c8bbb23037]
to [3471b8ce15].
[diff]
Added typeparse/doc/DIAGNOSTIC-SOMMES.md version [d6e8095e4a].
Added typeparse/doc/sommes/sondes.out version [fabe56071b].
Added typeparse/doc/sommes/sondes.tcl version [f8f5b7297a].
Added typeparse/doc/sommes/sondes_v16w.out version [0e68e87e98].
Added typeparse/doc/sommes/sondes_v16w.tcl version [e76bef8280].
Modified typeparse/exemples/convertir_images.tcl
from [823334405e]
to [d620e542b0].
[diff]
Modified typeparse/exemples/cproc/LISEZMOI.md
from [d1e50c5323]
to [d59f39cc2d].
[diff]
Modified typeparse/exemples/cproc/cproc.tcl
from [efe29c4886]
to [e5b55b6076].
[diff]
Modified typeparse/exemples/cproc/cproc2_type.tcl
from [3e726b269b]
to [47feb264e9].
[diff]
Modified typeparse/exemples/deref_manual.tcl
from [2aa269b7d9]
to [9178555c5f].
[diff]
Modified typeparse/exemples/geometrie.tcl
from [d18c9ca114]
to [0e90455701].
[diff]
Modified typeparse/exemples/gif_somme.tcl
from [3cf80fc1e5]
to [b8b66d1af1].
[diff]
Modified typeparse/exemples/niveau2.tcl
from [b297860ba8]
to [e37b6ec992].
[diff]
Modified typeparse/exemples/png_somme.tcl
from [60e652aae7]
to [63499c992d].
[diff]
Modified typeparse/exemples/tcl_obj.tcl
from [d888df49ce]
to [6084e211bd].
[diff]
Modified typeparse/exemples/tcllib_geometry/geometry.tcl
from [34149365c0]
to [1a762097cc].
[diff]
Modified typeparse/exemples/texte_enrichi/LISEZMOI.md
from [f78a147553]
to [9400ea2619].
[diff]
Modified typeparse/exemples/texte_enrichi/modele.tcl
from [9fe0cfa124]
to [594a4498ac].
[diff]
Modified typeparse/exemples/texte_enrichi/test.out
from [7c958f4ae9]
to [2454739418].
[diff]
Modified typeparse/layout/binaliases.tcl
from [8483d5f649]
to [aa03856699].
[diff]
Modified typeparse/noyau/LISEZMOI.md
from [e75eebc78f]
to [7c4d8252b6].
[diff]
Modified typeparse/tclAnnotObj.c
from [7e4c2e8151]
to [da5082ec2e].
[diff]
Modified typeparse/tclTypeParse.c
from [665df310c9]
to [5977c0b3a5].
[diff]
Modified typeparse/tclTypePath.c
from [adb49bcf0d]
to [4cd8db406f].
[diff]
Modified typeparse/tclTypedVar.c
from [13a43fa7ae]
to [a574448fa7].
[diff]
Modified typeparse/tclTypes.c
from [299009e2f2]
to [aaa61b8abf].
[diff]
Modified typeparse/tclTypes.h
from [dcb15afc0f]
to [aeb1beff9b].
[diff]
Modified typeparse/tclTypesInt.h
from [dd301b7df0]
to [2bc6b4c92a].
[diff]
Modified typeparse/tests_tclsh/t100_espaces_types.out
from [867b34e88a]
to [7b2b634966].
[diff]
Modified typeparse/tests_tclsh/t18_elements_types.out
from [78a439de0d]
to [39f1015f46].
[diff]
Modified typeparse/tests_tclsh/t18_elements_types.tcl
from [6a688cef28]
to [c1202d7cac].
[diff]
Modified typeparse/tests_tclsh/t22_somme_balisee.tcl
from [c7312eb9a5]
to [bcbb8b95a4].
[diff]
Modified typeparse/tests_tclsh/t28_type_deref.tcl.out
from [cbcd12c108]
to [1be76e1bb0].
[diff]
Modified typeparse/tests_tclsh/t29_deref_arbres_sommes.tcl
from [a3c5aefd21]
to [0feaa4cadf].
[diff]
Modified typeparse/tests_tclsh/t29_deref_arbres_sommes.tcl.out
from [cb3ab7a9a0]
to [fb77fd48fe].
[diff]
Modified typeparse/tests_tclsh/t35_niveau2.tcl
from [cf9cd1f61c]
to [0ca37d5326].
[diff]
Modified typeparse/tests_tclsh/t36_somme_choisie.tcl
from [3cda45e01e]
to [e4c647c2b4].
[diff]
Modified typeparse/tests_tclsh/t38_lien.tcl.out
from [94268f6c29]
to [d945844e2b].
[diff]
Modified typeparse/tests_tclsh/t40_profondeur_liens.tcl.out
from [c4d9cdea0c]
to [848e927ac9].
[diff]
Modified typeparse/tests_tclsh/t43_dedupe.out
from [2cd3ac0a3c]
to [4886b38c41].
[diff]
Modified typeparse/tests_tclsh/t49_cast_constructeur.tcl
from [151023cdd6]
to [85dc06f30d].
[diff]
Modified typeparse/tests_tclsh/t55_cast_collection.out
from [a34c626f8e]
to [41e6362d69].
[diff]
Modified typeparse/tests_tclsh/t57_selecteur.tcl
from [61e977f03c]
to [2fe63bc81a].
[diff]
Modified typeparse/tests_tclsh/t63_separateurs.out
from [ef484272f3]
to [f715ab030c].
[diff]
Modified typeparse/tests_tclsh/t63_separateurs.tcl
from [53ad79a6d6]
to [b0eb4be9b0].
[diff]
Modified typeparse/tests_tclsh/t64_variante_inactive.out
from [d670535bb7]
to [c35c30019c].
[diff]
Modified typeparse/tests_tclsh/t64_variante_inactive.tcl
from [86ef4d0aef]
to [ea551363eb].
[diff]
Modified typeparse/tests_tclsh/t66_variantes_meme_forme.out
from [760e71139f]
to [bec2640abf].
[diff]
Modified typeparse/tests_tclsh/t66_variantes_meme_forme.tcl
from [360ebdc643]
to [956b2389bf].
[diff]
Modified typeparse/tests_tclsh/t67_conversion_variantes.out
from [649fce017d]
to [358d097573].
[diff]
Modified typeparse/tests_tclsh/t67_conversion_variantes.tcl
from [5cee76d576]
to [cbb8707e06].
[diff]
Modified typeparse/tests_tclsh/t72_compact_type.out
from [04b33e6caf]
to [804a41409e].
[diff]
Modified typeparse/tests_tclsh/t76_lecture_champ.out
from [6a5fd3298b]
to [bb3fbd496f].
[diff]
Modified typeparse/tests_tclsh/t76_lecture_champ.tcl
from [0040bde652]
to [3928dbe20d].
[diff]
Modified typeparse/tests_tclsh/t80_lappend_contrat.out
from [a97e940f91]
to [4ff6eb2447].
[diff]
Modified typeparse/tests_tclsh/t80_lappend_contrat.tcl
from [bbe0853136]
to [5730b01a6b].
[diff]
Modified typeparse/tests_tclsh/t81_codec_c_chaines.tcl
from [a2cbaf7aba]
to [0109f5d99c].
[diff]
Modified typeparse/tests_tclsh/t82_declaration_compilee.out
from [caded05af9]
to [c00cbc427c].
[diff]
Modified typeparse/tests_tclsh/t82_declaration_compilee.tcl
from [a049a59813]
to [66fc691f51].
[diff]
Modified typeparse/tests_tclsh/t83_lecture_champ_affectation.tcl
from [8b2643779d]
to [f85a50a7b7].
[diff]
Modified typeparse/tests_tclsh/t86_codec_c_liens.out
from [eca80b175b]
to [1b1d0ce11e].
[diff]
Modified typeparse/tests_tclsh/t88_parties_produit.out
from [e7289b00af]
to [26bc0c68e9].
[diff]
Modified typeparse/tests_tclsh/t88_parties_produit.tcl
from [1e421dfd6b]
to [f086c7a75a].
[diff]
Modified typeparse/tests_tclsh/t91_type_forget.tcl
from [b4adf375eb]
to [e99f17cfd9].
[diff]
Modified typeparse/tests_tclsh/t92_cast_etiquettes.tcl
from [39ca181ce8]
to [c944038107].
[diff]
Modified typeparse/tests_tclsh/t93_piste_b.out
from [50925faa28]
to [4b722871cb].
[diff]
Modified typeparse/tests_tclsh/t93_piste_b.tcl
from [17674dd956]
to [5f8b2ef387].
[diff]
Modified typeparse/tests_tclsh/t94_sommes_strictes.out
from [a513e3b531]
to [d35fe9bddb].
[diff]
Modified typeparse/tests_tclsh/t94_sommes_strictes.tcl
from [945fa0958e]
to [d152186848].
[diff]
Modified typeparse/tests_tclsh/t95_variantes_produits.out
from [b1151ae63f]
to [025dd9811d].
[diff]
Modified typeparse/tests_tclsh/t95_variantes_produits.tcl
from [4bf321af7a]
to [39426fb088].
[diff]
Modified typeparse/tests_tclsh/t96_procs_typees.out
from [08aec096d1]
to [ac5a8c61dc].
[diff]
Modified typeparse/tests_tclsh/t96_procs_typees.tcl
from [f906f508c9]
to [fd5e27ed5e].
[diff]
Modified typeparse/tests_tclsh/t97_options.out
from [0f670b3a37]
to [deea84ed9d].
[diff]
Modified typeparse/tests_tclsh/t98_depliage.out
from [9b6bf41c02]
to [1da67aed8b].
[diff]
Modified typeparse/tests_tclsh/t99_produits_ouverts.out
from [4424521f5b]
to [34f38c8418].
[diff]