Skip to content
Tcl Source Code Artifact [fd3945a3b2]
Login

Artifact [fd3945a3b2]

Artifact fd3945a3b2c6acb20eecee57b7f47c3b6b4bdf700c43949cd35e60595c1ff4e6:


== la valeur est la charge
étiquette                          5 S/s
expr sur la charge                 10
chemin v(i)                        5 int
une seule variante                 abc S/s
deux variantes : erreur            ERREUR value "5" fits variants i and s of S: write {/i}5, or set {S}v(i) 5
même forme : erreur                ERREUR value "5" fits variants i and j of A: write {/i}5, or set {A}v(i) 5
littéral : lui-même                auto M/auto
littéral contre variante           L2/auto
rien de collant                    value "8" fits variants i and s of S: write {/i}8
cast vers la variante              int
cast vers string                   5
égalité en valeur                  1
conversion par cast                212.0 temp/fahrenheit
== variantes et littéraux
variant -of S                      i s
variant -of E (aucune)             
variant -of M                      n
variant -of M n                    int
variant -of M auto                 ERREUR type variant -of M: no variant "auto" (a literal of it: a literal has no payload)
literal -of E                      on off auto
literal -of M                      auto
literal -of S (aucun)              
variant -of int                    ERREUR type variant -of: int is not a sum
variant -of de type get            i s
is {sum?}                          1 1 0
is {enum?}                         1 0 0
is {sum?} d'une valeur             1
variant $v                         s
variant d'un littéral : vide       <>
réétiqueter                        5 A/j A/i
réétiqueter : charge refusée       ERREUR expected integer but got "abc"
réétiqueter vers un littéral       ERREUR type variant: M has no variant "auto" (a literal of it is its own value: write it)
réétiqueter n'est pas convertir    100.0 temp/fahrenheit
== la forme chaîne
variante écrite : i                {{S/i}5} ≡
déduite : une seule variante       {{S/s}abc} ≡
variante écrite : s                {{S/s}5} ≡
même forme                         {{A/j}5} ≡
dans une liste                     {{list.S}{{{/s}5} {{/i}6} x}} ≡
dans un produit                    {{P}{{{/s}5} {{/j}7}}} ≡
relu : les variantes               A/j A/i
par la chaîne nue : erreur         ERREUR value "5" fits variants i and j of A: write {/i}5
variante inconnue                  ERREUR S has no variant "zz"
étiquette inconnue : un texte      {{/zz}5}
charge refusée                     ERREUR expected integer but got "abc"