Skip to content
Tcl Source Code Check-in [eacc36058b]
Login

Check-in [eacc36058b]

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: eacc36058b849cae04573b3e4ad4c3f75c2d019ee216cef75a1ba3e903924bbd
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