Artifact 31f9d12a3ed9011b51580247ed29a5f95027c75ee0a46964358085ef37f47897:
- File typeparse/tests_tclsh/t43_dedupe.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: 472) [annotate] [blame] [check-ins using]
--- sans -dedupe : trois cibles / without: three targets 030507070807080909 --- avec -dedupe : x et y partagent la cible / x and y share the target 03030507080909 --- relecture identique / reading gives the same value {7 8} {7 8} {9 9} 1 --- une cible qui contient un lien n'est pas dédupliquée / a target holding a link is not deduped {10 {11 none}} {10 {11 none}} 02040a060a080b000b00 02040a060a060b00 1 --- -dedupe 0 explicite / explicit -dedupe 0 030507070807080909