Artifact 46f9f2091cc37949b11fa23fc88aab6b6fe78809949b4d0a2a88a36c155acbae:
- File typeparse/tests_tclsh/t108_normalisation_notes.out — part of check-in [eacc36058b] at 2026-11-27 09:47:31 on branch tip-764_tcl90 — 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' (user: Florentis, size: 935) [annotate] [blame] [check-ins using]
== normalisation int 0x10 16 int " 3 ", +3, 0o10 3 3 8 double 2e1, 1 20.0 1.0 string inchangée 0.10 argument typé 16 list.double 1.0 20.0 dict.int a 16 produit Jean 12 somme 1.0 S108.d nominal 20.0 lappend sous contrat 1.0 20.0 double : division réelle 2.5 égalité de texte 1 == notes gardées list (commande) {{} int} {{} this} {list} {{} {}} {{} this} list.double, lindex {double vitesse} {double {}} dict.int, chemin {int poids} {int {}} {dict}, dict get {} poids scalaire typé et noté int mm étiquette : pas une note S2.i S2.s