Overview
| Comment: | v17z Review of sum type notation. - A variant of a sum is metadata, it must not appeat into the value : If there is ambiguity to choose a variant of a sum, it must be an error. - New commands to request variants of a sum type, or of a litteral sum : type variant $v ?NAME? : empty for a litteral ; NAME select the variant of the value. type variant -of T ?NAME? type literal -of T ; type is {sum?}T type is {enum?}T - New command to compare the type of a value : type eq T1 T2 : true is types T1 and T2 are equal type include T1 T2 : true if type T2 is included into T1 - New type 'num' |
|---|---|
| Timelines: | family | ancestors | descendants | both | tip-764_tcl90 |
| Files: | files | file ages | folders |
| SHA3-256: |
eacc36058b849cae04573b3e4ad4c3f7 |
| User & Date: | Florentis on 2026-11-27 09:47:31.728 |
| Other Links: | branch diff | manifest | tags |
Context
|
2026-11-27
| ||
| 11:49 | v18a - label {/name} for fields, variants, named argument and canonic type ({S/s}5, {/s}5) - P/f gi... check-in: 17b2667925 user: Florentis tags: tip-764_tcl90 | |
| 09:47 | v17z Review of sum type notation. - A variant of a sum is metadata, it must not appeat into ... check-in: eacc36058b user: Florentis tags: tip-764_tcl90 | |
| 08:43 | v17y version type map -report var : command to report some details about vectorised loops made by ... check-in: 827b37de4e user: Florentis tags: tip-764_tcl90 | |
Changes
Modified generic/tclAnnotObj.c
from [4e234fc5dd]
to [8e80a730cf].
[diff]
Modified generic/tclTypePath.c
from [4cbac5ded8]
to [709107d37f].
[diff]
Modified generic/tclTypedVar.c
from [510b94bf21]
to [08498214f4].
[diff]
Modified generic/tclTypes.c
from [931c3c61aa]
to [27f2e03db7].
[diff]
Modified generic/tclTypes.h
from [61f83c76c1]
to [8c6089e443].
[diff]
Modified typeparse/MANUEL.md
from [10fad0aafa]
to [60fac9b2a4].
[diff]
Modified typeparse/REPRISE.md
from [a54ef3c36d]
to [d9df42bf48].
[diff]
Modified typeparse/VERSION
from [10af5637d6]
to [7bcfc7dc89].
[diff]
Modified typeparse/doc/764.md
from [df4b4eafa8]
to [e1d288f3c9].
[diff]
Added typeparse/doc/CONCEPTION-sommes-num.md version [4d4d56cd95].
Modified typeparse/exemples/tcllib_geometry/geometry.tcl
from [eb97a08e09]
to [d642b6864e].
[diff]
Modified typeparse/exemples/texte_enrichi/LISEZMOI.md
from [9400ea2619]
to [e1438ff1d4].
[diff]
Modified typeparse/exemples/texte_enrichi/test.out
from [2454739418]
to [e3b0c4942d].
[diff]
Modified typeparse/layout/filebinary.tcl
from [8182b6f732]
to [37d45ccbf0].
[diff]
Modified typeparse/tclAnnotObj.c
from [4e234fc5dd]
to [8e80a730cf].
[diff]
Modified typeparse/tclTypePath.c
from [4cbac5ded8]
to [709107d37f].
[diff]
Modified typeparse/tclTypedVar.c
from [510b94bf21]
to [08498214f4].
[diff]
Modified typeparse/tclTypes.c
from [931c3c61aa]
to [27f2e03db7].
[diff]
Modified typeparse/tclTypes.h
from [61f83c76c1]
to [8c6089e443].
[diff]
Modified typeparse/tests_tclsh/t100_espaces_types.out
from [9ba1bba32b]
to [32109d3c0f].
[diff]
Modified typeparse/tests_tclsh/t102_retour_etiquette.out
from [1a995825a5]
to [ebcacf3180].
[diff]
Modified typeparse/tests_tclsh/t108_normalisation_notes.out
from [512c841824]
to [46f9f2091c].
[diff]
Modified typeparse/tests_tclsh/t108_normalisation_notes.tcl
from [ed23a030ff]
to [2076336cda].
[diff]
Modified typeparse/tests_tclsh/t109_union_nombre.out
from [c7fe152b8f]
to [4f2e5583de].
[diff]
Modified typeparse/tests_tclsh/t109_union_nombre.tcl
from [c56e9a2ba2]
to [a17498b438].
[diff]
Modified typeparse/tests_tclsh/t110_canonic_parse.out
from [d3359ccc2e]
to [426e4e799d].
[diff]
Modified typeparse/tests_tclsh/t110_canonic_parse.tcl
from [145ea68221]
to [31869a5f94].
[diff]
Modified typeparse/tests_tclsh/t111_ordre_resolution.out
from [7510d8d85a]
to [5f753d0463].
[diff]
Modified typeparse/tests_tclsh/t111_ordre_resolution.tcl
from [9783bbddc5]
to [50ea9dc731].
[diff]
Modified typeparse/tests_tclsh/t112_meta_types.tcl
from [338070838c]
to [27f2a90d2a].
[diff]
Modified typeparse/tests_tclsh/t126_fenetres_vues.tcl
from [23a5801e62]
to [91a4dd0a26].
[diff]
Added typeparse/tests_tclsh/t137_sommes_metadonnee.out version [02cf0f6932].
Added typeparse/tests_tclsh/t137_sommes_metadonnee.tcl version [78b348456a].
Added typeparse/tests_tclsh/t138_eq_include_num.out version [bd071c4fd5].
Added typeparse/tests_tclsh/t138_eq_include_num.tcl version [e1525c3b5d].
Modified typeparse/tests_tclsh/t18_elements_types.tcl
from [c1202d7cac]
to [d473b457e9].
[diff]
Modified typeparse/tests_tclsh/t28_type_deref.tcl.out
from [5ffba5b0b0]
to [8e138cd6d7].
[diff]
Modified typeparse/tests_tclsh/t29_deref_arbres_sommes.tcl.out
from [fb77fd48fe]
to [57283c217e].
[diff]
Modified typeparse/tests_tclsh/t38_lien.tcl.out
from [d945844e2b]
to [b185a59255].
[diff]
Modified typeparse/tests_tclsh/t40_profondeur_liens.tcl.out
from [848e927ac9]
to [efa523e541].
[diff]
Modified typeparse/tests_tclsh/t43_dedupe.out
from [4886b38c41]
to [31f9d12a3e].
[diff]
Modified typeparse/tests_tclsh/t55_cast_collection.out
from [354949f6eb]
to [9fb517db75].
[diff]
Modified typeparse/tests_tclsh/t63_separateurs.out
from [f715ab030c]
to [346206bf62].
[diff]
Modified typeparse/tests_tclsh/t64_variante_inactive.out
from [c35c30019c]
to [d670535bb7].
[diff]
Modified typeparse/tests_tclsh/t66_variantes_meme_forme.out
from [bec2640abf]
to [1341e417cb].
[diff]
Modified typeparse/tests_tclsh/t66_variantes_meme_forme.tcl
from [956b2389bf]
to [7acc3e9450].
[diff]
Modified typeparse/tests_tclsh/t67_conversion_variantes.out
from [4d5f6fcd10]
to [f46eaf50ea].
[diff]
Modified typeparse/tests_tclsh/t72_compact_type.out
from [af7a4fc60a]
to [aae5aff8f7].
[diff]
Modified typeparse/tests_tclsh/t76_lecture_champ.out
from [bb3fbd496f]
to [6a5fd3298b].
[diff]
Modified typeparse/tests_tclsh/t80_lappend_contrat.out
from [ca902b8e00]
to [182b3c4714].
[diff]
Modified typeparse/tests_tclsh/t82_declaration_compilee.out
from [469ef98735]
to [754c161e72].
[diff]
Modified typeparse/tests_tclsh/t86_codec_c_liens.out
from [1b1d0ce11e]
to [dc7be76679].
[diff]
Modified typeparse/tests_tclsh/t88_parties_produit.out
from [26bc0c68e9]
to [e7289b00af].
[diff]
Modified typeparse/tests_tclsh/t93_piste_b.out
from [873caf59d3]
to [09da6c46f1].
[diff]
Modified typeparse/tests_tclsh/t94_sommes_strictes.out
from [f4cb53a5e7]
to [b5e0a33cfd].
[diff]
Modified typeparse/tests_tclsh/t94_sommes_strictes.tcl
from [8f2d0f0c89]
to [7bf4981aef].
[diff]
Modified typeparse/tests_tclsh/t95_variantes_produits.out
from [025dd9811d]
to [b1151ae63f].
[diff]
Modified typeparse/tests_tclsh/t96_procs_typees.out
from [64e6fe507f]
to [c3037bd1ed].
[diff]
Modified typeparse/tests_tclsh/t97_options.out
from [deea84ed9d]
to [0f670b3a37].
[diff]
Modified typeparse/tests_tclsh/t98_depliage.out
from [4cab09cf6f]
to [a56ed81740].
[diff]
Modified typeparse/tests_tclsh/t99_produits_ouverts.out
from [b1b57510c9]
to [b6591ebe48].
[diff]