Artifact dc7be7667907fac1eb2c8610b7b1ca676b6d72f17d47cf93e33421a32ca29659:
- File typeparse/tests_tclsh/t86_codec_c_liens.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: 1013) [annotate] [blame] [check-ins using]
// 7 octets C=Tcl 1 relu C=Tcl 1 relu=v 1 07050000000102 // nat 10 octets C=Tcl 1 relu C=Tcl 1 relu=v 1 07000000080000000102 ./ 7 octets C=Tcl 1 relu C=Tcl 1 relu=v 1 09030505060708 ./ lu C=Tcl 1 9 {0 1} {2 3} . 4 octets C=Tcl 1 relu C=Tcl 1 relu=v 1 00010708 ../ C=Tcl 1 0 {0 {10 11}} ../ écrit 5 octets C=Tcl 1 relu C=Tcl 1 relu=v 1 0000030a0b liste 7 octets C=Tcl 1 relu C=Tcl 1 relu=v 1 02030501020304 taille après 9 octets C=Tcl 1 relu C=Tcl 1 relu=v 1 030003010203040506 chaînée C=Tcl 1 1 {2 {3 none}} chaînée écrite 6 octets C=Tcl 1 relu C=Tcl 1 relu=v 1 010202040300 signé C=Tcl 1 1 5 6 {5 6} at + lien 4 octets C=Tcl 1 relu C=Tcl 1 relu=v 1 04020909 lien nul à défaut : 1 {0 0} 0300 -linkdepth 0 : 5 &*(//,int(u,32,le)).rec cycle : 1 type binary: link cycle at offset 0 (field s of boucle) dedupe : 09030505060708 chaîne de 300 : 1 1