Artifact 754c161e721ba039eb4bd19f29dac50ecbe979be847ac8197b31bdf7304a9647:
- File typeparse/tests_tclsh/t82_declaration_compilee.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: 732) [annotate] [blame] [check-ins using]
point : {1.0 2.0} point 1 {point needs 2 values but got 1} compilé 1 défaut : 1 pdef needs 2 values but got 1 double : 1.5 double 1 {expected floating-point number but got "z"} 3.0 double 1 {expected floating-point number but got "z"} refus : 1 expected floating-point number but got "abc" expected floating-point number but got "abc" (procedure "p4" line 1) invoked from within "p4" partagée : {1.0 2.0} {} {1.0 2.0} point déjà typée : {3.0 4.0} point compacte : {{1.0 2.0} {3.0 4.0}} 1 somme : 2.0 forme.cote carré forme.nom lien : {5.0 6.0} point 1 {point needs 2 values but got 1} trace : {7.0 8.0} point A qualifié : {1.0 1.0} point compilé 0 global : 2.0 2.0 point boucle : {2 1.0} point type inconnu : 0 1